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

Version of the URL to display to clients.

Expanded version of display_url.

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.

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]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

[src]

Formats the value using the given formatter. Read more

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

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

impl<'a> Sync for Url<'a>