Struct twitter_stream_message::entities::UserMention
[−]
[src]
pub struct UserMention<'a> { pub id: UserId, pub indices: (u64, u64), pub name: Cow<'a, str>, pub screen_name: Cow<'a, str>, }
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: Cow<'a, str>
Display name of the referenced user.
screen_name: Cow<'a, str>
Screen name of the referenced user.
Trait Implementations
impl<'a> Clone for UserMention<'a>
[src]
fn clone(&self) -> UserMention<'a>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'a> Debug for UserMention<'a>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<'a> Eq for UserMention<'a>
[src]
impl<'a> PartialEq for UserMention<'a>
[src]
fn eq(&self, __arg_0: &UserMention<'a>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &UserMention<'a>) -> bool
[src]
This method tests for !=
.