pub struct Contact {
pub user_id: i64,
pub mutual: bool,
}Expand description
Fields§
§user_id: i64§mutual: boolTrait Implementations§
Source§impl Deserializable for Contact
impl Deserializable for Contact
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 Contact
impl Identifiable for Contact
Source§const CONSTRUCTOR_ID: u32 = 0x145ade0b
const CONSTRUCTOR_ID: u32 = 0x145ade0b
The constructor ID as specified in the TL schema.
Source§impl Serializable for Contact
impl Serializable for Contact
impl StructuralPartialEq for Contact
Auto Trait Implementations§
impl Freeze for Contact
impl RefUnwindSafe for Contact
impl Send for Contact
impl Sync for Contact
impl Unpin for Contact
impl UnsafeUnpin for Contact
impl UnwindSafe for Contact
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