Enum rust_tdlib::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)
A scope covering all group and supergroup chat administrators
AllGroupChats(BotCommandScopeAllGroupChats)
A scope covering all group and supergroup chats
AllPrivateChats(BotCommandScopeAllPrivateChats)
A scope covering all private chats
Chat(BotCommandScopeChat)
A scope covering all members of a chat
ChatAdministrators(BotCommandScopeChatAdministrators)
A scope covering all administrators of a chat
ChatMember(BotCommandScopeChatMember)
A scope covering a member of a chat
Default(BotCommandScopeDefault)
A scope covering all users
Implementations
Trait Implementations
sourceimpl AsRef<BotCommandScope> for BotCommandScope
impl AsRef<BotCommandScope> for BotCommandScope
sourcefn as_ref(&self) -> &BotCommandScope
fn as_ref(&self) -> &BotCommandScope
Converts this type into a shared reference of the (usually inferred) input type.
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 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for BotCommandScope
impl Debug for BotCommandScope
sourceimpl Default for BotCommandScope
impl Default 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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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