pub enum BotCommandScope {
Default,
Users,
Chats,
ChatAdmins,
Peer(BotCommandScopePeer),
PeerAdmins(BotCommandScopePeerAdmins),
PeerUser(BotCommandScopePeerUser),
}Expand description
Variants§
Default
Users
Chats
ChatAdmins
Peer(BotCommandScopePeer)
PeerAdmins(BotCommandScopePeerAdmins)
PeerUser(BotCommandScopePeerUser)
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 Deserializable for BotCommandScope
impl Deserializable for BotCommandScope
Source§fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
Read
Self from buf, advancing its position.Source§fn from_bytes(bytes: &[u8]) -> Result<Self>
fn from_bytes(bytes: &[u8]) -> Result<Self>
Convenience: deserialize from a byte slice.
Source§impl From<BotCommandScopeChatAdmins> for BotCommandScope
impl From<BotCommandScopeChatAdmins> for BotCommandScope
Source§fn from(_x: BotCommandScopeChatAdmins) -> Self
fn from(_x: BotCommandScopeChatAdmins) -> Self
Converts to this type from the input type.
Source§impl From<BotCommandScopeChats> for BotCommandScope
impl From<BotCommandScopeChats> for BotCommandScope
Source§fn from(_x: BotCommandScopeChats) -> Self
fn from(_x: BotCommandScopeChats) -> Self
Converts to this type from the input type.
Source§impl From<BotCommandScopeDefault> for BotCommandScope
impl From<BotCommandScopeDefault> for BotCommandScope
Source§fn from(_x: BotCommandScopeDefault) -> Self
fn from(_x: BotCommandScopeDefault) -> Self
Converts to this type from the input type.
Source§impl From<BotCommandScopePeer> for BotCommandScope
impl From<BotCommandScopePeer> for BotCommandScope
Source§fn from(x: BotCommandScopePeer) -> Self
fn from(x: BotCommandScopePeer) -> Self
Converts to this type from the input type.
Source§impl From<BotCommandScopePeerAdmins> for BotCommandScope
impl From<BotCommandScopePeerAdmins> for BotCommandScope
Source§fn from(x: BotCommandScopePeerAdmins) -> Self
fn from(x: BotCommandScopePeerAdmins) -> Self
Converts to this type from the input type.
Source§impl From<BotCommandScopePeerUser> for BotCommandScope
impl From<BotCommandScopePeerUser> for BotCommandScope
Source§fn from(x: BotCommandScopePeerUser) -> Self
fn from(x: BotCommandScopePeerUser) -> Self
Converts to this type from the input type.
Source§impl From<BotCommandScopeUsers> for BotCommandScope
impl From<BotCommandScopeUsers> for BotCommandScope
Source§fn from(_x: BotCommandScopeUsers) -> Self
fn from(_x: BotCommandScopeUsers) -> Self
Converts to this type from the input type.
Source§impl PartialEq for BotCommandScope
impl PartialEq for BotCommandScope
Source§impl Serializable for BotCommandScope
impl Serializable for BotCommandScope
Source§impl TryFrom<BotCommandScope> for BotCommandScopePeer
impl TryFrom<BotCommandScope> for BotCommandScopePeer
Source§type Error = BotCommandScope
type Error = BotCommandScope
The type returned in the event of a conversion error.
Source§impl TryFrom<BotCommandScope> for BotCommandScopePeerAdmins
impl TryFrom<BotCommandScope> for BotCommandScopePeerAdmins
Source§type Error = BotCommandScope
type Error = BotCommandScope
The type returned in the event of a conversion error.
Source§impl TryFrom<BotCommandScope> for BotCommandScopePeerUser
impl TryFrom<BotCommandScope> for BotCommandScopePeerUser
Source§type Error = BotCommandScope
type Error = BotCommandScope
The type returned in the event of a conversion error.
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 UnsafeUnpin 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