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
Auto Trait Implementations§
impl Freeze for ChatPhoto
impl RefUnwindSafe for ChatPhoto
impl Send for ChatPhoto
impl Sync for ChatPhoto
impl Unpin for ChatPhoto
impl UnwindSafe for ChatPhoto
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more