pub enum Method {
Direct(DirectMethod),
List(ListMethod),
Place(PlaceMethod),
Search(SearchMethod),
Service(ServiceMethod),
Tweet(TweetMethod),
User(UserMethod),
}
Expand description
A Twitter API method.
This enum is a simple wrapper for egg-mode’s individual unrelated method types.
Variants§
Direct(DirectMethod)
A method from the direct
module.
List(ListMethod)
A method from the list
module.
Place(PlaceMethod)
A method from the place
module.
Search(SearchMethod)
A method from the search
module.
Service(ServiceMethod)
A method from the service
module.
Tweet(TweetMethod)
A method from the tweet
module.
User(UserMethod)
A method from the user
module.
Implementations§
Source§impl Method
impl Method
pub const USER_BLOCKS_IDS: &'static Method
pub const USER_FOLLOWED_IDS: &'static Method
pub const USER_FOLLOWER_IDS: &'static Method
pub const USER_LOOKUP: &'static Method
pub const USER_SHOW: &'static Method
pub const USER_TIMELINE: &'static Method
Trait Implementations§
Source§impl From<DirectMethod> for Method
impl From<DirectMethod> for Method
Source§fn from(m: DirectMethod) -> Self
fn from(m: DirectMethod) -> Self
Converts to this type from the input type.
Source§impl From<ListMethod> for Method
impl From<ListMethod> for Method
Source§fn from(m: ListMethod) -> Self
fn from(m: ListMethod) -> Self
Converts to this type from the input type.
Source§impl From<PlaceMethod> for Method
impl From<PlaceMethod> for Method
Source§fn from(m: PlaceMethod) -> Self
fn from(m: PlaceMethod) -> Self
Converts to this type from the input type.
Source§impl From<SearchMethod> for Method
impl From<SearchMethod> for Method
Source§fn from(m: SearchMethod) -> Self
fn from(m: SearchMethod) -> Self
Converts to this type from the input type.
Source§impl From<ServiceMethod> for Method
impl From<ServiceMethod> for Method
Source§fn from(m: ServiceMethod) -> Self
fn from(m: ServiceMethod) -> Self
Converts to this type from the input type.
Source§impl From<TweetMethod> for Method
impl From<TweetMethod> for Method
Source§fn from(m: TweetMethod) -> Self
fn from(m: TweetMethod) -> Self
Converts to this type from the input type.
Source§impl From<UserMethod> for Method
impl From<UserMethod> for Method
Source§fn from(m: UserMethod) -> Self
fn from(m: UserMethod) -> Self
Converts to this type from the input type.
impl Eq for Method
impl StructuralPartialEq for Method
Auto Trait Implementations§
impl Freeze for Method
impl RefUnwindSafe for Method
impl Send for Method
impl Sync for Method
impl Unpin for Method
impl UnwindSafe for Method
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.