Struct twitter_stream::entities::UserMention
[−]
[src]
pub struct UserMention {
pub id: UserId,
pub indices: (u64, u64),
pub name: String,
pub screen_name: String,
}Represents a user in user_mentions field of Entities.
Fields
id: UserId
ID of the mentioned user, as an integer.
indices: (u64, u64)
A pair of integers representing the offsets within the Tweet text where the user reference begins and ends. The first integer represents the location of the ‘@’ character of the user mention. The second integer represents the location of the first non-screenname character following the user mention.
name: String
Display name of the referenced user.
screen_name: String
Screen name of the referenced user.
Trait Implementations
impl Clone for UserMention[src]
fn clone(&self) -> UserMention
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl Debug for UserMention[src]
impl Eq for UserMention[src]
impl PartialEq for UserMention[src]
fn eq(&self, __arg_0: &UserMention) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &UserMention) -> bool
This method tests for !=.
impl Hash for UserMention[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher1.3.0
Feeds a slice of this type into the state provided.