pub struct MessageEmpty {
pub id: i32,
pub peer_id: Option<Peer>,
}Expand description
Fields§
§id: i32§peer_id: Option<Peer>Trait Implementations§
Source§impl Clone for MessageEmpty
impl Clone for MessageEmpty
Source§fn clone(&self) -> MessageEmpty
fn clone(&self) -> MessageEmpty
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 MessageEmpty
impl Debug for MessageEmpty
Source§impl Deserializable for MessageEmpty
impl Deserializable for MessageEmpty
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<MessageEmpty> for Message
impl From<MessageEmpty> for Message
Source§fn from(x: MessageEmpty) -> Self
fn from(x: MessageEmpty) -> Self
Converts to this type from the input type.
Source§impl Identifiable for MessageEmpty
impl Identifiable for MessageEmpty
Source§const CONSTRUCTOR_ID: u32 = 0x90a6ca84
const CONSTRUCTOR_ID: u32 = 0x90a6ca84
The constructor ID as specified in the TL schema.
Source§impl PartialEq for MessageEmpty
impl PartialEq for MessageEmpty
Source§impl Serializable for MessageEmpty
impl Serializable for MessageEmpty
Source§impl TryFrom<Message> for MessageEmpty
impl TryFrom<Message> for MessageEmpty
impl StructuralPartialEq for MessageEmpty
Auto Trait Implementations§
impl Freeze for MessageEmpty
impl RefUnwindSafe for MessageEmpty
impl Send for MessageEmpty
impl Sync for MessageEmpty
impl Unpin for MessageEmpty
impl UnsafeUnpin for MessageEmpty
impl UnwindSafe for MessageEmpty
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