Struct twitter_stream::entities::Hashtag [] [src]

pub struct Hashtag {
    pub indices: (u64, u64),
    pub text: String,
}

Represents a hashtag in hashtags field of Entities.

Fields

A pair of integers indicating the offsets within the Tweet text where the hashtag begins and ends. The first integer represents the location of the # character in the Tweet text string. The second integer represents the location of the first character after the hashtag. Therefore the difference between the two numbers will be the length of the hashtag name plus one (for the # character).

Name of the hashtag, minus the leading # character.

Trait Implementations

impl Clone for Hashtag
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Hashtag
[src]

Formats the value using the given formatter.

impl Eq for Hashtag
[src]

impl PartialEq for Hashtag
[src]

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

This method tests for !=.

impl Hash for Hashtag
[src]

Feeds this value into the state given, updating the hasher as necessary.

Feeds a slice of this type into the state provided.