Struct egg_mode::entities::UrlEntity
[−]
[src]
pub struct UrlEntity { pub display_url: String, pub expanded_url: String, pub range: (usize, usize), pub url: String, }
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: 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.