Enum rtdlib::types::BotCommandScope
source[−]pub enum BotCommandScope {
AllChatAdministrators(BotCommandScopeAllChatAdministrators),
AllGroupChats(BotCommandScopeAllGroupChats),
AllPrivateChats(BotCommandScopeAllPrivateChats),
Chat(BotCommandScopeChat),
ChatAdministrators(BotCommandScopeChatAdministrators),
ChatMember(BotCommandScopeChatMember),
Default(BotCommandScopeDefault),
// some variants omitted
}
Expand description
Represents the scope to which bot commands are relevant
Variants
AllChatAdministrators(BotCommandScopeAllChatAdministrators)
Tuple Fields
A scope covering all group and supergroup chat administrators
AllGroupChats(BotCommandScopeAllGroupChats)
Tuple Fields
A scope covering all group and supergroup chats
AllPrivateChats(BotCommandScopeAllPrivateChats)
Tuple Fields
A scope covering all private chats
Chat(BotCommandScopeChat)
Tuple Fields
A scope covering all members of a chat
ChatAdministrators(BotCommandScopeChatAdministrators)
Tuple Fields
A scope covering all administrators of a chat
ChatMember(BotCommandScopeChatMember)
Tuple Fields
A scope covering a member of a chat
Default(BotCommandScopeDefault)
Tuple Fields
A scope covering all users
Implementations
pub fn on_all_chat_administrators<F: FnOnce(&BotCommandScopeAllChatAdministrators)>(
&self,
fnc: F
) -> &Self
pub fn on_all_private_chats<F: FnOnce(&BotCommandScopeAllPrivateChats)>(
&self,
fnc: F
) -> &Self
pub fn on_chat_administrators<F: FnOnce(&BotCommandScopeChatAdministrators)>(
&self,
fnc: F
) -> &Self
Trait Implementations
Performs the conversion.
fn deserialize<D>(deserializer: D) -> Result<BotCommandScope, D::Error> where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<BotCommandScope, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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
Mutably borrows from an owned value. Read more