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
indices: (u64, u64)
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).
text: Cow<'a, str>
Name of the hashtag, minus the leading #
character.
Trait Implementations
impl<'a> Clone for Hashtag<'a>
[src]
fn clone(&self) -> Hashtag<'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 Hashtag<'a>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<'a> Eq for Hashtag<'a>
[src]
impl<'a> PartialEq for Hashtag<'a>
[src]
fn eq(&self, __arg_0: &Hashtag<'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: &Hashtag<'a>) -> bool
[src]
This method tests for !=
.