Enum telegram_types::bot::types::UpdateContent
source · pub enum UpdateContent {
Message(Message),
EditedMessage(Message),
ChannelPost(Message),
EditedChannelPost(Message),
CallbackQuery(CallbackQuery),
InlineQuery(InlineQuery),
Unknown,
// some variants omitted
}
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(Message)
New incoming channel post of any kind — text, photo, sticker, etc.
EditedChannelPost(Message)
New version of a channel post that is known to the bot and was edited
CallbackQuery(CallbackQuery)
New incoming callback query
InlineQuery(InlineQuery)
New incoming inline query
Unknown
Unknown upstream data type.
Trait Implementations
sourceimpl Clone for UpdateContent
impl Clone for UpdateContent
sourcefn clone(&self) -> UpdateContent
fn clone(&self) -> UpdateContent
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for UpdateContent
impl Debug for UpdateContent
sourceimpl<'de> Deserialize<'de> for UpdateContent
impl<'de> Deserialize<'de> for UpdateContent
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<UpdateContent> for UpdateContent
impl PartialEq<UpdateContent> for UpdateContent
sourcefn eq(&self, other: &UpdateContent) -> bool
fn eq(&self, other: &UpdateContent) -> bool
sourceimpl Serialize for UpdateContent
impl Serialize for UpdateContent
impl StructuralPartialEq for UpdateContent
Auto Trait Implementations
impl RefUnwindSafe for UpdateContent
impl Send for UpdateContent
impl Sync for UpdateContent
impl Unpin for UpdateContent
impl UnwindSafe for UpdateContent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more