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>,
}Expand description
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§
Source§impl<'de: 'a, 'a> Deserialize<'de> for Url<'a>
impl<'de: 'a, 'a> Deserialize<'de> for Url<'a>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<'a> Eq for Url<'a>
impl<'a> StructuralPartialEq for Url<'a>
Auto Trait Implementations§
impl<'a> Freeze for Url<'a>
impl<'a> RefUnwindSafe for Url<'a>
impl<'a> Send for Url<'a>
impl<'a> Sync for Url<'a>
impl<'a> Unpin for Url<'a>
impl<'a> UnwindSafe for Url<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more