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]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

[src]

Formats the value using the given formatter. Read more

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

impl<'a> PartialEq for Hashtag<'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 Hashtag<'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 Hashtag<'a>

impl<'a> Sync for Hashtag<'a>