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