pub struct File {
pub type: FileType,
pub mtime: i32,
pub bytes: Vec<u8>,
}Expand description
Generated from:
upload.file#96a18d5 type:storage.FileType mtime:int bytes:bytes = upload.FileFields§
§type: FileType§mtime: i32§bytes: Vec<u8>Trait Implementations§
Source§impl Deserializable for File
impl Deserializable for File
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 File
impl Identifiable for File
Source§const CONSTRUCTOR_ID: u32 = 0x096a18d5
const CONSTRUCTOR_ID: u32 = 0x096a18d5
The constructor ID as specified in the TL schema.
Source§impl Serializable for File
impl Serializable for File
impl StructuralPartialEq for File
Auto Trait Implementations§
impl Freeze for File
impl RefUnwindSafe for File
impl Send for File
impl Sync for File
impl Unpin for File
impl UnsafeUnpin for File
impl UnwindSafe for File
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