pub enum UpdateKind {
Message(Message),
EditedMessage(Message),
CallbackQuery(CallbackQuery),
MessageReaction(MessageReactionUpdated),
Unknown,
}Expand description
The kind of update received
Variants§
Message(Message)
A new message in a chat
EditedMessage(Message)
An edit to a message already delivered
CallbackQuery(CallbackQuery)
An inline keyboard button press
MessageReaction(MessageReactionUpdated)
A reaction on a message changed. Only delivered when message_reaction
appears in allowed_updates.
Unknown
An update this version does not model
Trait Implementations§
Source§impl Clone for UpdateKind
impl Clone for UpdateKind
Source§fn clone(&self) -> UpdateKind
fn clone(&self) -> UpdateKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for UpdateKind
impl RefUnwindSafe for UpdateKind
impl Send for UpdateKind
impl Sync for UpdateKind
impl Unpin for UpdateKind
impl UnsafeUnpin for UpdateKind
impl UnwindSafe for UpdateKind
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