Struct tbot::types::parameters::AllowedUpdates
source · pub struct AllowedUpdates { /* private fields */ }
Expand description
Represents a set of allowed updates.
Implementations§
source§impl AllowedUpdates
impl AllowedUpdates
sourcepub const fn none() -> Self
pub const fn none() -> Self
Constructs AllowedUpdates
with none of the updates allowed to be received.
sourcepub const fn message(self, is_allowed: bool) -> Self
pub const fn message(self, is_allowed: bool) -> Self
Configures if the message
update is allowed to be received.
sourcepub const fn edited_message(self, is_allowed: bool) -> Self
pub const fn edited_message(self, is_allowed: bool) -> Self
Configures if the edited_message
update is allowed to be received.
sourcepub const fn channel_post(self, is_allowed: bool) -> Self
pub const fn channel_post(self, is_allowed: bool) -> Self
Configures if the channel_post
update is allowed to be received.
sourcepub const fn edited_channel_post(self, is_allowed: bool) -> Self
pub const fn edited_channel_post(self, is_allowed: bool) -> Self
Configures if the edited_channel_post
update is allowed to be received.
sourcepub const fn inline_query(self, is_allowed: bool) -> Self
pub const fn inline_query(self, is_allowed: bool) -> Self
Configures if the inline_query
update is allowed to be received.
sourcepub const fn chosen_inline_result(self, is_allowed: bool) -> Self
pub const fn chosen_inline_result(self, is_allowed: bool) -> Self
Configures if the chosen_inline_result
update is allowed to be received.
sourcepub const fn callback_query(self, is_allowed: bool) -> Self
pub const fn callback_query(self, is_allowed: bool) -> Self
Configures if the callback_query
update is allowed to be received.
sourcepub const fn shipping_query(self, is_allowed: bool) -> Self
pub const fn shipping_query(self, is_allowed: bool) -> Self
Configures if the shipping_query
update is allowed to be received.
sourcepub const fn pre_checkout_query(self, is_allowed: bool) -> Self
pub const fn pre_checkout_query(self, is_allowed: bool) -> Self
Configures if the pre_checkout_query
update is allowed to be received.
sourcepub const fn poll(self, is_allowed: bool) -> Self
pub const fn poll(self, is_allowed: bool) -> Self
Configures if the poll
update is allowed to be received.
sourcepub const fn poll_answer(self, is_allowed: bool) -> Self
pub const fn poll_answer(self, is_allowed: bool) -> Self
Configures if the poll_answer
update is allowed to be received.
sourcepub const fn my_chat_member(self, is_allowed: bool) -> Self
pub const fn my_chat_member(self, is_allowed: bool) -> Self
Configures if the my_chat_member
update is allowed to be received.
sourcepub const fn chat_member(self, is_allowed: bool) -> Self
pub const fn chat_member(self, is_allowed: bool) -> Self
Configures if the chat_member
update is allowed to be received.
Trait Implementations§
source§impl Clone for AllowedUpdates
impl Clone for AllowedUpdates
source§fn clone(&self) -> AllowedUpdates
fn clone(&self) -> AllowedUpdates
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AllowedUpdates
impl Debug for AllowedUpdates
source§impl Default for AllowedUpdates
impl Default for AllowedUpdates
source§impl<'de> Deserialize<'de> for AllowedUpdates
impl<'de> Deserialize<'de> for AllowedUpdates
source§fn 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>,
source§impl Hash for AllowedUpdates
impl Hash for AllowedUpdates
source§impl PartialEq<AllowedUpdates> for AllowedUpdates
impl PartialEq<AllowedUpdates> for AllowedUpdates
source§fn eq(&self, other: &AllowedUpdates) -> bool
fn eq(&self, other: &AllowedUpdates) -> bool
self
and other
values to be equal, and is used
by ==
.