pub enum UpdateKind {
Message(Message),
EditedMessage(Message),
ChannelPost(ChannelPost),
EditedChannelPost(ChannelPost),
InlineQuery(InlineQuery),
CallbackQuery(CallbackQuery),
Poll(Poll),
PollAnswer(PollAnswer),
// some variants omitted
}
Expand description
Kind of the incoming update.
Variants§
Message(Message)
New incoming message of any kind — text, photo, sticker, etc.
EditedMessage(Message)
New version of a message that is known to the bot and was edited
ChannelPost(ChannelPost)
New incoming channel post of any kind — text, photo, sticker, etc.
EditedChannelPost(ChannelPost)
New version of a channel post that is known to the bot and was edited
InlineQuery(InlineQuery)
CallbackQuery(CallbackQuery)
Poll(Poll)
New poll state. Bots receive only updates about stopped polls and polls, which are sent by the bot
PollAnswer(PollAnswer)
A user changed their answer in a non-anonymous poll. Bots receive new votes only in polls that were sent by the bot itself
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 · 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 UpdateKind
impl Debug for UpdateKind
Source§impl<'de> Deserialize<'de> for UpdateKind
impl<'de> Deserialize<'de> for UpdateKind
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<UpdateKind, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<UpdateKind, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for UpdateKind
impl PartialEq for UpdateKind
Source§impl PartialOrd for UpdateKind
impl PartialOrd for UpdateKind
impl StructuralPartialEq for UpdateKind
Auto Trait Implementations§
impl Freeze for UpdateKind
impl RefUnwindSafe for UpdateKind
impl Send for UpdateKind
impl Sync for UpdateKind
impl Unpin 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