Enum telegram_bot_api::types::BotCommandScope
source · [−]pub enum BotCommandScope {
BotCommandScopeDefault(BotCommandScopeDefault),
BotCommandScopeAllPrivateChats(BotCommandScopeAllPrivateChats),
BotCommandScopeAllGroupChats(BotCommandScopeAllGroupChats),
BotCommandScopeAllChatAdministrators(BotCommandScopeAllChatAdministrators),
BotCommandScopeChat(BotCommandScopeChat),
BotCommandScopeChatAdministrators(BotCommandScopeChatAdministrators),
BotCommandScopeChatMember(BotCommandScopeChatMember),
}
Expand description
This object represents the scope to which bot commands are applied. Currently, the following 7 scopes are supported:
BotCommandScopeDefault
BotCommandScopeAllPrivateChats
BotCommandScopeAllGroupChats
BotCommandScopeAllChatAdministrators
BotCommandScopeChat
BotCommandScopeChatAdministrators
BotCommandScopeChatMember
Variants
BotCommandScopeDefault(BotCommandScopeDefault)
BotCommandScopeAllPrivateChats(BotCommandScopeAllPrivateChats)
BotCommandScopeAllGroupChats(BotCommandScopeAllGroupChats)
BotCommandScopeAllChatAdministrators(BotCommandScopeAllChatAdministrators)
BotCommandScopeChat(BotCommandScopeChat)
BotCommandScopeChatAdministrators(BotCommandScopeChatAdministrators)
BotCommandScopeChatMember(BotCommandScopeChatMember)
Trait Implementations
sourceimpl Clone for BotCommandScope
impl Clone for BotCommandScope
sourcefn clone(&self) -> BotCommandScope
fn clone(&self) -> BotCommandScope
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for BotCommandScope
impl Debug for BotCommandScope
sourceimpl<'de> Deserialize<'de> for BotCommandScope
impl<'de> Deserialize<'de> for BotCommandScope
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 Serialize for BotCommandScope
impl Serialize for BotCommandScope
Auto Trait Implementations
impl RefUnwindSafe for BotCommandScope
impl Send for BotCommandScope
impl Sync for BotCommandScope
impl Unpin for BotCommandScope
impl UnwindSafe for BotCommandScope
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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