pub struct WebFile {
pub size: i32,
pub mime_type: String,
pub file_type: FileType,
pub mtime: i32,
pub bytes: Vec<u8>,
}Expand description
Generated from:
upload.webFile#21e753bc size:int mime_type:string file_type:storage.FileType mtime:int bytes:bytes = upload.WebFileFields§
§size: i32§mime_type: String§file_type: FileType§mtime: i32§bytes: Vec<u8>Trait Implementations§
Source§impl Deserializable for WebFile
impl Deserializable for WebFile
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 WebFile
impl Identifiable for WebFile
Source§const CONSTRUCTOR_ID: u32 = 0x21e753bc
const CONSTRUCTOR_ID: u32 = 0x21e753bc
The constructor ID as specified in the TL schema.
Source§impl Serializable for WebFile
impl Serializable for WebFile
impl StructuralPartialEq for WebFile
Auto Trait Implementations§
impl Freeze for WebFile
impl RefUnwindSafe for WebFile
impl Send for WebFile
impl Sync for WebFile
impl Unpin for WebFile
impl UnsafeUnpin for WebFile
impl UnwindSafe for WebFile
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