Struct rust_tdlib::types::ChatPhoto
source · [−]pub struct ChatPhoto { /* private fields */ }
Expand description
Describes a chat or user profile photo
Implementations
sourceimpl 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
sourceimpl<'de> Deserialize<'de> for ChatPhoto
impl<'de> Deserialize<'de> for ChatPhoto
sourcefn 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 RefUnwindSafe for ChatPhoto
impl Send for ChatPhoto
impl Sync for ChatPhoto
impl Unpin for ChatPhoto
impl UnwindSafe for ChatPhoto
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more