pub struct SecureFile {
pub id: i64,
pub access_hash: i64,
pub size: i64,
pub dc_id: i32,
pub date: i32,
pub file_hash: Vec<u8>,
pub secret: Vec<u8>,
}Expand description
Generated from:
secureFile#7d09c27e id:long access_hash:long size:long dc_id:int date:int file_hash:bytes secret:bytes = SecureFileFields§
§id: i64§access_hash: i64§size: i64§dc_id: i32§date: i32§file_hash: Vec<u8>§secret: Vec<u8>Trait Implementations§
Source§impl Clone for SecureFile
impl Clone for SecureFile
Source§fn clone(&self) -> SecureFile
fn clone(&self) -> SecureFile
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 SecureFile
impl Debug for SecureFile
Source§impl Deserializable for SecureFile
impl Deserializable for SecureFile
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<SecureFile> for SecureFile
impl From<SecureFile> for SecureFile
Source§fn from(x: SecureFile) -> Self
fn from(x: SecureFile) -> Self
Converts to this type from the input type.
Source§impl Identifiable for SecureFile
impl Identifiable for SecureFile
Source§const CONSTRUCTOR_ID: u32 = 0x7d09c27e
const CONSTRUCTOR_ID: u32 = 0x7d09c27e
The constructor ID as specified in the TL schema.
Source§impl PartialEq for SecureFile
impl PartialEq for SecureFile
Source§impl Serializable for SecureFile
impl Serializable for SecureFile
Source§impl TryFrom<SecureFile> for SecureFile
impl TryFrom<SecureFile> for SecureFile
Source§type Error = SecureFile
type Error = SecureFile
The type returned in the event of a conversion error.
impl StructuralPartialEq for SecureFile
Auto Trait Implementations§
impl Freeze for SecureFile
impl RefUnwindSafe for SecureFile
impl Send for SecureFile
impl Sync for SecureFile
impl Unpin for SecureFile
impl UnsafeUnpin for SecureFile
impl UnwindSafe for SecureFile
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