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 of the mentioned user, as an integer.

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.

Display name of the referenced user.

Screen name of the referenced user.

Trait Implementations

impl<'a> Clone for UserMention<'a>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'a> Debug for UserMention<'a>
[src]

[src]

Formats the value using the given formatter. Read more

impl<'a> Eq for UserMention<'a>
[src]

impl<'a> PartialEq for UserMention<'a>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl<'a> Hash for UserMention<'a>
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

impl<'a> Send for UserMention<'a>

impl<'a> Sync for UserMention<'a>