Struct telegram_bot_api::methods::DeleteMyCommands
source · [−]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
sourceimpl Clone for DeleteMyCommands
impl Clone for DeleteMyCommands
sourcefn clone(&self) -> DeleteMyCommands
fn clone(&self) -> DeleteMyCommands
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for DeleteMyCommands
impl Debug for DeleteMyCommands
sourceimpl<'de> Deserialize<'de> for DeleteMyCommands
impl<'de> Deserialize<'de> for DeleteMyCommands
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 Methods for DeleteMyCommands
impl Methods for DeleteMyCommands
sourceimpl Serialize for DeleteMyCommands
impl Serialize for DeleteMyCommands
Auto Trait Implementations
impl RefUnwindSafe for DeleteMyCommands
impl Send for DeleteMyCommands
impl Sync for DeleteMyCommands
impl Unpin for DeleteMyCommands
impl UnwindSafe for DeleteMyCommands
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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