[−][src]Enum tbot::types::parameters::UpdateKind
Variants (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.
Handles chat messages of any kind.
Handles chat message edits.
Handles channel posts of any kind.
Handles channel post edits.
Handles inline queries.
Handles chosen inline results.
Handles inline button clicks.
Handles shpping query.
Handles pre-checkout query.
Handles poll state updates.
Methods
impl UpdateKind
[src]
#[must_use]
pub fn is_message(self) -> bool
[src]
Checks if self
is Message
.
#[must_use]
pub fn is_edited_message(self) -> bool
[src]
Checks if self
is EditedMessage
.
#[must_use]
pub fn is_channel_post(self) -> bool
[src]
Checks if self
is ChanelPost
.
#[must_use]
pub fn is_edited_channel_post(self) -> bool
[src]
Checks if self
is EditedChannelPost
.
#[must_use]
pub fn is_inline_query(self) -> bool
[src]
Checks if self
is InlineQuery
.
#[must_use]
pub fn is_chosen_inline_result(self) -> bool
[src]
Checks if self
is ChosenInlineResult
.
#[must_use]
pub fn is_callback_query(self) -> bool
[src]
Checks if self
is CallbackQuery
.
#[must_use]
pub fn is_shipping_query(self) -> bool
[src]
Checks if self
is ShippingQuery
.
#[must_use]
pub fn is_pre_checkout_query(self) -> bool
[src]
Checks if self
is PreCheckoutQuery
.
#[must_use]
pub fn is_poll(self) -> bool
[src]
Checks if self
is Poll
.
Trait Implementations
impl Clone for UpdateKind
[src]
fn clone(&self) -> UpdateKind
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for UpdateKind
[src]
impl Debug for UpdateKind
[src]
impl<'de> Deserialize<'de> for UpdateKind
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for UpdateKind
[src]
impl Hash for UpdateKind
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<UpdateKind> for UpdateKind
[src]
fn eq(&self, other: &UpdateKind) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl Serialize for UpdateKind
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for UpdateKind
[src]
impl StructuralPartialEq for UpdateKind
[src]
Auto Trait Implementations
impl RefUnwindSafe for UpdateKind
impl Send for UpdateKind
impl Sync for UpdateKind
impl Unpin for UpdateKind
impl UnwindSafe for UpdateKind
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,