[−][src]Enum tbot::types::parameters::UpdateKind
Variants (Non-exhaustive)
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]
pub fn is_message(&self) -> bool
[src]
Returns true
if self
is of variant Message
.
pub fn is_edited_message(&self) -> bool
[src]
Returns true
if self
is of variant EditedMessage
.
pub fn is_channel_post(&self) -> bool
[src]
Returns true
if self
is of variant ChannelPost
.
pub fn is_edited_channel_post(&self) -> bool
[src]
Returns true
if self
is of variant EditedChannelPost
.
pub fn is_inline_query(&self) -> bool
[src]
Returns true
if self
is of variant InlineQuery
.
pub fn is_chosen_inline_result(&self) -> bool
[src]
Returns true
if self
is of variant ChosenInlineResult
.
pub fn is_callback_query(&self) -> bool
[src]
Returns true
if self
is of variant CallbackQuery
.
pub fn is_shipping_query(&self) -> bool
[src]
Returns true
if self
is of variant ShippingQuery
.
pub fn is_pre_checkout_query(&self) -> bool
[src]
Returns true
if self
is of variant PreCheckoutQuery
.
pub fn is_poll(&self) -> bool
[src]
Returns true
if self
is of variant 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]
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> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> WithSubscriber for T
[src]
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,