pub struct Photo {
pub has_stickers: bool,
pub id: i64,
pub access_hash: i64,
pub file_reference: Vec<u8>,
pub date: i32,
pub sizes: Vec<PhotoSize>,
pub video_sizes: Option<Vec<VideoSize>>,
pub dc_id: i32,
}Expand description
Generated from:
photo#fb197a65 flags:# has_stickers:flags.0?true id:long access_hash:long file_reference:bytes date:int sizes:Vector<PhotoSize> video_sizes:flags.1?Vector<VideoSize> dc_id:int = PhotoFields§
§has_stickers: bool§id: i64§access_hash: i64§file_reference: Vec<u8>§date: i32§sizes: Vec<PhotoSize>§video_sizes: Option<Vec<VideoSize>>§dc_id: i32Trait Implementations§
Source§impl Deserializable for Photo
impl Deserializable for Photo
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 Photo
impl Identifiable for Photo
Source§const CONSTRUCTOR_ID: u32 = 0xfb197a65
const CONSTRUCTOR_ID: u32 = 0xfb197a65
The constructor ID as specified in the TL schema.
Source§impl Serializable for Photo
impl Serializable for Photo
impl StructuralPartialEq for Photo
Auto Trait Implementations§
impl Freeze for Photo
impl RefUnwindSafe for Photo
impl Send for Photo
impl Sync for Photo
impl Unpin for Photo
impl UnsafeUnpin for Photo
impl UnwindSafe for Photo
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