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§
Source§impl DeleteMyCommands
impl DeleteMyCommands
Sourcepub fn with_scope(self, scope: BotCommandScope) -> Self
pub fn with_scope(self, scope: BotCommandScope) -> Self
Set command scope
Sourcepub fn with_language_code(self, language_code: impl Into<String>) -> Self
pub fn with_language_code(self, language_code: impl Into<String>) -> Self
Set language code
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 Serialize for DeleteMyCommands
impl Serialize 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