pub struct ChatPhoto {
pub id: i64,
pub added_date: i32,
pub minithumbnail: Option<Minithumbnail>,
pub sizes: Vec<PhotoSize>,
pub animation: Option<AnimatedChatPhoto>,
pub small_animation: Option<AnimatedChatPhoto>,
pub sticker: Option<ChatPhotoSticker>,
}
Expand description
Describes a chat or user profile photo
Fields§
§id: i64
Unique photo identifier
added_date: i32
Point in time (Unix timestamp) when the photo has been added
minithumbnail: Option<Minithumbnail>
Photo minithumbnail; may be null
sizes: Vec<PhotoSize>
Available variants of the photo in JPEG format, in different size
animation: Option<AnimatedChatPhoto>
A big (up to 1280x1280) animated variant of the photo in MPEG4 format; may be null
small_animation: Option<AnimatedChatPhoto>
A small (160x160) animated variant of the photo in MPEG4 format; may be null even the big animation is available
sticker: Option<ChatPhotoSticker>
Sticker-based version of the chat photo; may be null
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
impl StructuralPartialEq for ChatPhoto
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