pub struct ProfilePhoto {
pub id: i64,
pub small: File,
pub big: File,
pub minithumbnail: Option<Minithumbnail>,
pub has_animation: bool,
pub is_personal: bool,
}
Expand description
Describes a user profile photo
Fields§
§id: i64
Photo identifier; 0 for an empty photo. Can be used to find a photo in a list of user profile photos
small: File
A small (160x160) user profile photo. The file can be downloaded only before the photo is changed
big: File
A big (640x640) user profile photo. The file can be downloaded only before the photo is changed
minithumbnail: Option<Minithumbnail>
User profile 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 ProfilePhoto
impl Clone for ProfilePhoto
Source§fn clone(&self) -> ProfilePhoto
fn clone(&self) -> ProfilePhoto
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 ProfilePhoto
impl Debug for ProfilePhoto
Source§impl Default for ProfilePhoto
impl Default for ProfilePhoto
Source§fn default() -> ProfilePhoto
fn default() -> ProfilePhoto
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProfilePhoto
impl<'de> Deserialize<'de> for ProfilePhoto
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 ProfilePhoto
impl PartialEq for ProfilePhoto
Source§impl Serialize for ProfilePhoto
impl Serialize for ProfilePhoto
impl StructuralPartialEq for ProfilePhoto
Auto Trait Implementations§
impl Freeze for ProfilePhoto
impl RefUnwindSafe for ProfilePhoto
impl Send for ProfilePhoto
impl Sync for ProfilePhoto
impl Unpin for ProfilePhoto
impl UnwindSafe for ProfilePhoto
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