pub struct ChatPhotoInfo {
pub small: File,
pub big: File,
pub minithumbnail: Option<Minithumbnail>,
pub has_animation: bool,
pub is_personal: bool,
}
Expand description
Contains basic information about the photo of a chat
Fields§
§small: File
A small (160x160) chat photo variant in JPEG format. The file can be downloaded only before the photo is changed
big: File
A big (640x640) chat photo variant in JPEG format. The file can be downloaded only before the photo is changed
minithumbnail: Option<Minithumbnail>
Chat photo minithumbnail; may be null
has_animation: bool
True, if the photo has animated variant
is_personal: bool
True, if the photo is visible only for the current user
Trait Implementations§
Source§impl Clone for ChatPhotoInfo
impl Clone for ChatPhotoInfo
Source§fn clone(&self) -> ChatPhotoInfo
fn clone(&self) -> ChatPhotoInfo
Returns a duplicate 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 ChatPhotoInfo
impl Debug for ChatPhotoInfo
Source§impl Default for ChatPhotoInfo
impl Default for ChatPhotoInfo
Source§fn default() -> ChatPhotoInfo
fn default() -> ChatPhotoInfo
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ChatPhotoInfo
impl<'de> Deserialize<'de> for ChatPhotoInfo
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
Source§impl PartialEq for ChatPhotoInfo
impl PartialEq for ChatPhotoInfo
Source§impl Serialize for ChatPhotoInfo
impl Serialize for ChatPhotoInfo
impl StructuralPartialEq for ChatPhotoInfo
Auto Trait Implementations§
impl Freeze for ChatPhotoInfo
impl RefUnwindSafe for ChatPhotoInfo
impl Send for ChatPhotoInfo
impl Sync for ChatPhotoInfo
impl Unpin for ChatPhotoInfo
impl UnwindSafe for ChatPhotoInfo
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