pub struct DeleteMyCommands {
pub scope: Option<BotCommandScope>,
pub language_code: Option<String>,
}
Expand description
Use this method to delete the list of the bot’s commands for the given scope and user language. After deletion, higher level commands will be shown to affected users. Returns True on success.
Fields§
§scope: Option<BotCommandScope>
A JSON-serialized object, describing scope of users for which the commands are relevant. Defaults to BotCommandScopeDefault.
language_code: Option<String>
A two-letter ISO 639-1 language code. If empty, commands will be applied to all users from the given scope, for whose language there are no dedicated commands
Implementations§
Trait Implementations§
Source§impl Clone for DeleteMyCommands
impl Clone for DeleteMyCommands
Source§fn clone(&self) -> DeleteMyCommands
fn clone(&self) -> DeleteMyCommands
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 DeleteMyCommands
impl Debug for DeleteMyCommands
Source§impl<'de> Deserialize<'de> for DeleteMyCommands
impl<'de> Deserialize<'de> for DeleteMyCommands
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 Methods for DeleteMyCommands
impl Methods for DeleteMyCommands
Auto Trait Implementations§
impl Freeze for DeleteMyCommands
impl RefUnwindSafe for DeleteMyCommands
impl Send for DeleteMyCommands
impl Sync for DeleteMyCommands
impl Unpin for DeleteMyCommands
impl UnwindSafe for DeleteMyCommands
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