Struct tbot::types::parameters::AllowedUpdates[][src]

#[must_use]
pub struct AllowedUpdates { /* fields omitted */ }

Represents a set of allowed updates.

Implementations

impl AllowedUpdates[src]

pub const fn none() -> Self[src]

Constructs AllowedUpdates with none of the updates allowed to be received.

pub const fn all() -> Self[src]

Constructs AllowedUpdates with all updates allowed to be received.

pub const fn message(self, is_allowed: bool) -> Self[src]

Configures if the message update is allowed to be received.

pub const fn edited_message(self, is_allowed: bool) -> Self[src]

Configures if the edited_message update is allowed to be received.

pub const fn channel_post(self, is_allowed: bool) -> Self[src]

Configures if the channel_post update is allowed to be received.

pub const fn edited_channel_post(self, is_allowed: bool) -> Self[src]

Configures if the edited_channel_post update is allowed to be received.

pub const fn inline_query(self, is_allowed: bool) -> Self[src]

Configures if the inline_query update is allowed to be received.

pub const fn chosen_inline_result(self, is_allowed: bool) -> Self[src]

Configures if the chosen_inline_result update is allowed to be received.

pub const fn callback_query(self, is_allowed: bool) -> Self[src]

Configures if the callback_query update is allowed to be received.

pub const fn shipping_query(self, is_allowed: bool) -> Self[src]

Configures if the shipping_query update is allowed to be received.

pub const fn pre_checkout_query(self, is_allowed: bool) -> Self[src]

Configures if the pre_checkout_query update is allowed to be received.

pub const fn poll(self, is_allowed: bool) -> Self[src]

Configures if the poll update is allowed to be received.

pub const fn poll_answer(self, is_allowed: bool) -> Self[src]

Configures if the poll_answer update is allowed to be received.

pub const fn my_chat_member(self, is_allowed: bool) -> Self[src]

Configures if the my_chat_member update is allowed to be received.

pub const fn chat_member(self, is_allowed: bool) -> Self[src]

Configures if the chat_member update is allowed to be received.

Trait Implementations

impl Clone for AllowedUpdates[src]

impl Debug for AllowedUpdates[src]

impl Default for AllowedUpdates[src]

fn default() -> Self[src]

Constructs AllowedUpdates with all updates except chat_member allowed to be received.

impl<'de> Deserialize<'de> for AllowedUpdates[src]

impl Hash for AllowedUpdates[src]

impl PartialEq<AllowedUpdates> for AllowedUpdates[src]

impl Serialize for AllowedUpdates[src]

impl Copy for AllowedUpdates[src]

impl Eq for AllowedUpdates[src]

impl StructuralEq for AllowedUpdates[src]

impl StructuralPartialEq for AllowedUpdates[src]

Auto Trait Implementations

impl RefUnwindSafe for AllowedUpdates

impl Send for AllowedUpdates

impl Sync for AllowedUpdates

impl Unpin for AllowedUpdates

impl UnwindSafe for AllowedUpdates

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]