pub struct UserProfilePhoto {
pub has_video: bool,
pub personal: bool,
pub photo_id: i64,
pub stripped_thumb: Option<Vec<u8>>,
pub dc_id: i32,
}Expand description
Generated from:
userProfilePhoto#82d1f706 flags:# has_video:flags.0?true personal:flags.2?true photo_id:long stripped_thumb:flags.1?bytes dc_id:int = UserProfilePhotoFields§
§has_video: bool§personal: bool§photo_id: i64§stripped_thumb: Option<Vec<u8>>§dc_id: i32Trait Implementations§
Source§impl Clone for UserProfilePhoto
impl Clone for UserProfilePhoto
Source§fn clone(&self) -> UserProfilePhoto
fn clone(&self) -> UserProfilePhoto
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 UserProfilePhoto
impl Debug for UserProfilePhoto
Source§impl Deserializable for UserProfilePhoto
impl Deserializable for UserProfilePhoto
Source§fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
Read
Self from buf, advancing its position.Source§fn from_bytes(bytes: &[u8]) -> Result<Self>
fn from_bytes(bytes: &[u8]) -> Result<Self>
Convenience: deserialize from a byte slice.
Source§impl From<UserProfilePhoto> for UserProfilePhoto
impl From<UserProfilePhoto> for UserProfilePhoto
Source§fn from(x: UserProfilePhoto) -> Self
fn from(x: UserProfilePhoto) -> Self
Converts to this type from the input type.
Source§impl Identifiable for UserProfilePhoto
impl Identifiable for UserProfilePhoto
Source§const CONSTRUCTOR_ID: u32 = 0x82d1f706
const CONSTRUCTOR_ID: u32 = 0x82d1f706
The constructor ID as specified in the TL schema.
Source§impl PartialEq for UserProfilePhoto
impl PartialEq for UserProfilePhoto
Source§impl Serializable for UserProfilePhoto
impl Serializable for UserProfilePhoto
Source§impl TryFrom<UserProfilePhoto> for UserProfilePhoto
impl TryFrom<UserProfilePhoto> for UserProfilePhoto
Source§type Error = UserProfilePhoto
type Error = UserProfilePhoto
The type returned in the event of a conversion error.
impl StructuralPartialEq for UserProfilePhoto
Auto Trait Implementations§
impl Freeze for UserProfilePhoto
impl RefUnwindSafe for UserProfilePhoto
impl Send for UserProfilePhoto
impl Sync for UserProfilePhoto
impl Unpin for UserProfilePhoto
impl UnsafeUnpin for UserProfilePhoto
impl UnwindSafe for UserProfilePhoto
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