Struct twitter_stream_message::entities::Hashtag [] [src]

pub struct Hashtag<'a> {
    pub indices: (u64, u64),
    pub text: Cow<'a, str>,
}

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<'a> Clone for Hashtag<'a>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Formats the value using the given formatter.

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

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

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

This method tests for !=.

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

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

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