Struct twitter_stream_message::entities::Url
[−]
[src]
pub struct Url<'a> {
pub display_url: Cow<'a, str>,
pub expanded_url: Cow<'a, str>,
pub indices: (u64, u64),
pub url: Cow<'a, str>,
}Represents a URL in urls field of Entities.
Fields
display_url: Cow<'a, str>
Version of the URL to display to clients.
expanded_url: Cow<'a, str>
Expanded version of display_url.
indices: (u64, u64)
A pair of integers representing offsets within the Tweet text where the URL begins and ends. The first integer represents the location of the first character of the URL in the Tweet text. The second integer represents the location of the first non-URL character after the end of the URL.
url: Cow<'a, str>
Wrapped URL, corresponding to the value embedded directly into the raw Tweet text, and the
values for the indices parameter.
Trait Implementations
impl<'a> Clone for Url<'a>[src]
fn clone(&self) -> Url<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl<'a> Debug for Url<'a>[src]
impl<'a> Eq for Url<'a>[src]
impl<'a> PartialEq for Url<'a>[src]
fn eq(&self, __arg_0: &Url<'a>) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Url<'a>) -> bool
This method tests for !=.