pub struct ChatPhoto {
pub has_video: bool,
pub photo_id: i64,
pub stripped_thumb: Option<Vec<u8>>,
pub dc_id: i32,
}Expand description
Generated from:
chatPhoto#1c6e1c11 flags:# has_video:flags.0?true photo_id:long stripped_thumb:flags.1?bytes dc_id:int = ChatPhotoFields§
§has_video: bool§photo_id: i64§stripped_thumb: Option<Vec<u8>>§dc_id: i32Trait Implementations§
Source§impl Deserializable for ChatPhoto
impl Deserializable for ChatPhoto
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 Identifiable for ChatPhoto
impl Identifiable for ChatPhoto
Source§const CONSTRUCTOR_ID: u32 = 0x1c6e1c11
const CONSTRUCTOR_ID: u32 = 0x1c6e1c11
The constructor ID as specified in the TL schema.
Source§impl Serializable for ChatPhoto
impl Serializable for ChatPhoto
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 UnsafeUnpin 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