pub struct State {
pub pts: i32,
pub qts: i32,
pub date: i32,
pub seq: i32,
pub unread_count: i32,
}Expand description
Generated from:
updates.state#a56c2a3e pts:int qts:int date:int seq:int unread_count:int = updates.StateFields§
§pts: i32§qts: i32§date: i32§seq: i32§unread_count: i32Trait Implementations§
Source§impl Deserializable for State
impl Deserializable for State
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 State
impl Identifiable for State
Source§const CONSTRUCTOR_ID: u32 = 0xa56c2a3e
const CONSTRUCTOR_ID: u32 = 0xa56c2a3e
The constructor ID as specified in the TL schema.
Source§impl Serializable for State
impl Serializable for State
impl StructuralPartialEq for State
Auto Trait Implementations§
impl Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnsafeUnpin for State
impl UnwindSafe for State
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