Enum frankenstein::objects::AllowedUpdate
source · [−]#[non_exhaustive]
pub enum AllowedUpdate {
Show 14 variants
Message,
EditedMessage,
ChannelPost,
EditedChannelPost,
InlineQuery,
ChosenInlineResult,
CallbackQuery,
ShippingQuery,
PreCheckoutQuery,
Poll,
PollAnswer,
MyChatMember,
ChatMember,
ChatJoinRequest,
}
Expand description
Control which updates to receive.
Specify an empty list to receive all update types except ChatMember
.
Official documentation.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Message
EditedMessage
ChannelPost
EditedChannelPost
InlineQuery
ChosenInlineResult
CallbackQuery
ShippingQuery
PreCheckoutQuery
Poll
PollAnswer
MyChatMember
ChatMember
ChatJoinRequest
Trait Implementations
sourceimpl Clone for AllowedUpdate
impl Clone for AllowedUpdate
sourcefn clone(&self) -> AllowedUpdate
fn clone(&self) -> AllowedUpdate
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 AllowedUpdate
impl Debug for AllowedUpdate
sourceimpl<'de> Deserialize<'de> for AllowedUpdate
impl<'de> Deserialize<'de> for AllowedUpdate
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 Hash for AllowedUpdate
impl Hash for AllowedUpdate
sourceimpl PartialEq<AllowedUpdate> for AllowedUpdate
impl PartialEq<AllowedUpdate> for AllowedUpdate
sourceimpl Serialize for AllowedUpdate
impl Serialize for AllowedUpdate
impl Copy for AllowedUpdate
impl Eq for AllowedUpdate
impl StructuralEq for AllowedUpdate
impl StructuralPartialEq for AllowedUpdate
Auto Trait Implementations
impl RefUnwindSafe for AllowedUpdate
impl Send for AllowedUpdate
impl Sync for AllowedUpdate
impl Unpin for AllowedUpdate
impl UnwindSafe for AllowedUpdate
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