pub struct UrlEntity {
pub display_url: String,
pub expanded_url: Option<String>,
pub range: (usize, usize),
pub url: String,
}Expand description
Represents a link extracted from another piece of text.
Fields§
§display_url: StringA truncated URL meant to be displayed inline with the text.
expanded_url: Option<String>The URL that the t.co URL resolves to.
Meant to be used as hover-text when a user mouses over a link.
range: (usize, usize)The byte offsets in the companion text where the URL was extracted from.
url: StringThe t.co URL extracted from the companion text.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for UrlEntity
impl<'de> Deserialize<'de> for UrlEntity
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
Auto Trait Implementations§
impl Freeze for UrlEntity
impl RefUnwindSafe for UrlEntity
impl Send for UrlEntity
impl Sync for UrlEntity
impl Unpin for UrlEntity
impl UnwindSafe for UrlEntity
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