Struct rust_tdlib::types::ChatPhoto
source · pub struct ChatPhoto { /* private fields */ }
Expand description
Describes a chat or user profile photo
Implementations§
source§impl ChatPhoto
impl ChatPhoto
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> ChatPhotoBuilder
pub fn id(&self) -> i64
pub fn added_date(&self) -> i32
pub fn minithumbnail(&self) -> &Option<Minithumbnail>
pub fn sizes(&self) -> &Vec<PhotoSize>
pub fn animation(&self) -> &Option<AnimatedChatPhoto>
Trait Implementations§
source§impl<'de> Deserialize<'de> for ChatPhoto
impl<'de> Deserialize<'de> for ChatPhoto
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