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: String
A 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: String
The 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