Struct rust_tdlib::types::PageBlockRelatedArticle
source · pub struct PageBlockRelatedArticle { /* private fields */ }
Expand description
Contains information about a related article
Implementations§
source§impl PageBlockRelatedArticle
impl PageBlockRelatedArticle
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> PageBlockRelatedArticleBuilder
pub fn url(&self) -> &String
pub fn title(&self) -> &String
pub fn description(&self) -> &String
pub fn photo(&self) -> &Option<Photo>
pub fn publish_date(&self) -> i32
Trait Implementations§
source§impl AsRef<PageBlockRelatedArticle> for PageBlockRelatedArticle
impl AsRef<PageBlockRelatedArticle> for PageBlockRelatedArticle
source§fn as_ref(&self) -> &PageBlockRelatedArticle
fn as_ref(&self) -> &PageBlockRelatedArticle
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for PageBlockRelatedArticle
impl Clone for PageBlockRelatedArticle
source§fn clone(&self) -> PageBlockRelatedArticle
fn clone(&self) -> PageBlockRelatedArticle
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PageBlockRelatedArticle
impl Debug for PageBlockRelatedArticle
source§impl Default for PageBlockRelatedArticle
impl Default for PageBlockRelatedArticle
source§fn default() -> PageBlockRelatedArticle
fn default() -> PageBlockRelatedArticle
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for PageBlockRelatedArticle
impl<'de> Deserialize<'de> for PageBlockRelatedArticle
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