Struct rust_tdlib::types::WebPage
source · pub struct WebPage { /* private fields */ }
Expand description
Describes a web page preview
Implementations§
source§impl WebPage
impl WebPage
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> WebPageBuilder
pub fn url(&self) -> &String
pub fn display_url(&self) -> &String
pub fn type_(&self) -> &String
pub fn site_name(&self) -> &String
pub fn title(&self) -> &String
pub fn description(&self) -> &FormattedText
pub fn photo(&self) -> &Option<Photo>
pub fn embed_url(&self) -> &String
pub fn embed_type(&self) -> &String
pub fn embed_width(&self) -> i32
pub fn embed_height(&self) -> i32
pub fn duration(&self) -> i32
pub fn animation(&self) -> &Option<Animation>
pub fn audio(&self) -> &Option<Audio>
pub fn document(&self) -> &Option<Document>
pub fn sticker(&self) -> &Option<Sticker>
pub fn video(&self) -> &Option<Video>
pub fn video_note(&self) -> &Option<VideoNote>
pub fn voice_note(&self) -> &Option<VoiceNote>
pub fn instant_view_version(&self) -> i32
Trait Implementations§
source§impl<'de> Deserialize<'de> for WebPage
impl<'de> Deserialize<'de> for WebPage
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