pub enum MessageBox {
Common {
pts: i32,
},
Secondary {
qts: i32,
},
Channel {
channel_id: i64,
pts: i32,
},
}Expand description
The message box and pts value that uniquely identifies the message-related update.
Variants§
Common
Account-wide persistent timestamp.
This includes private conversations (one-to-one) and small group chats.
Secondary
Account-wide secondary persistent timestamp.
This includes only certain bot updates and secret one-to-one chats.
Channel
Channel-specific persistent timestamp.
This includes “megagroup”, “broadcast” and “supergroup” channels.
Implementations§
Trait Implementations§
Source§impl Clone for MessageBox
impl Clone for MessageBox
Source§fn clone(&self) -> MessageBox
fn clone(&self) -> MessageBox
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 MessageBox
impl Debug for MessageBox
Source§impl Ord for MessageBox
impl Ord for MessageBox
Source§fn cmp(&self, other: &MessageBox) -> Ordering
fn cmp(&self, other: &MessageBox) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for MessageBox
impl PartialEq for MessageBox
Source§impl PartialOrd for MessageBox
impl PartialOrd for MessageBox
impl Copy for MessageBox
impl Eq for MessageBox
impl StructuralPartialEq for MessageBox
Auto Trait Implementations§
impl Freeze for MessageBox
impl RefUnwindSafe for MessageBox
impl Send for MessageBox
impl Sync for MessageBox
impl Unpin for MessageBox
impl UnsafeUnpin for MessageBox
impl UnwindSafe for MessageBox
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