pub struct State {
pub date: i32,
pub seq: i32,
pub message_box: Option<MessageBox>,
}Expand description
Update state, up to and including the update it is a part of.
When using catch_up with a client, all updates with a
state containing a MessageBox higher than this one will be fetched.
Fields§
§date: i32Last date state assigned by Telegram, which changes somewhat arbitrarily.
seq: i32Last sequence state assigned by Telegram, which changes somewhat arbitrarily.
message_box: Option<MessageBox>The particular message box change if the update pertains to a message-related event sequence.
Trait Implementations§
Source§impl Ord for State
impl Ord for State
Source§impl PartialOrd for State
impl PartialOrd for State
impl Eq 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 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