Enum frankenstein::objects::UpdateContent
source · [−]pub enum UpdateContent {
Show 14 variants
Message(Message),
EditedMessage(Message),
ChannelPost(Message),
EditedChannelPost(Message),
InlineQuery(InlineQuery),
ChosenInlineResult(ChosenInlineResult),
CallbackQuery(CallbackQuery),
ShippingQuery(ShippingQuery),
PreCheckoutQuery(PreCheckoutQuery),
Poll(Poll),
PollAnswer(PollAnswer),
MyChatMember(ChatMemberUpdated),
ChatMember(ChatMemberUpdated),
ChatJoinRequest(ChatJoinRequest),
}
Variants
Message(Message)
EditedMessage(Message)
ChannelPost(Message)
EditedChannelPost(Message)
InlineQuery(InlineQuery)
ChosenInlineResult(ChosenInlineResult)
CallbackQuery(CallbackQuery)
ShippingQuery(ShippingQuery)
PreCheckoutQuery(PreCheckoutQuery)
Poll(Poll)
PollAnswer(PollAnswer)
MyChatMember(ChatMemberUpdated)
ChatMember(ChatMemberUpdated)
ChatJoinRequest(ChatJoinRequest)
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 more
sourceimpl 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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &UpdateContent) -> bool
fn ne(&self, other: &UpdateContent) -> bool
This method tests for !=
.
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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