pub enum BotCommandScope {
Default,
AllPrivateChats,
AllGroupChats,
AllChatAdministrators,
Chat(BotCommandScopeChat),
ChatAdministrators(BotCommandScopeChatAdministrators),
ChatMember(BotCommandScopeChatMember),
}
Variants§
Default
A scope covering all users
AllPrivateChats
A scope covering all private chats
AllGroupChats
A scope covering all group and supergroup chats
AllChatAdministrators
A scope covering all group and supergroup chat administrators
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
Trait Implementations§
Source§impl Clone for BotCommandScope
impl Clone for BotCommandScope
Source§fn clone(&self) -> BotCommandScope
fn clone(&self) -> BotCommandScope
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BotCommandScope
impl Debug for BotCommandScope
Source§impl<'de> Deserialize<'de> for BotCommandScope
impl<'de> Deserialize<'de> for BotCommandScope
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for BotCommandScope
impl PartialEq for BotCommandScope
Source§impl Serialize for BotCommandScope
impl Serialize for BotCommandScope
impl StructuralPartialEq for BotCommandScope
Auto Trait Implementations§
impl Freeze for BotCommandScope
impl RefUnwindSafe for BotCommandScope
impl Send for BotCommandScope
impl Sync for BotCommandScope
impl Unpin for BotCommandScope
impl UnwindSafe for BotCommandScope
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more