pub struct DeleteMyCommands { /* private fields */ }Expand description
Builder for the deleteMyCommands method.
Deletes the bot’s command list for the given scope and language. After deletion, higher-level commands will be shown to affected users.
Implementations§
Source§impl DeleteMyCommands
impl DeleteMyCommands
Sourcepub fn scope(self, s: BotCommandScope) -> Self
pub fn scope(self, s: BotCommandScope) -> Self
Restricts deletion to a specific scope.
Sourcepub fn language_code(self, lc: impl Into<String>) -> Self
pub fn language_code(self, lc: impl Into<String>) -> Self
Restricts deletion to a specific language code (IETF tag, e.g. "en").
Trait Implementations§
Source§impl IntoFuture for DeleteMyCommands
impl IntoFuture for DeleteMyCommands
Source§type IntoFuture = Pin<Box<dyn Future<Output = <DeleteMyCommands as IntoFuture>::Output> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = <DeleteMyCommands as IntoFuture>::Output> + Send>>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl Freeze for DeleteMyCommands
impl !RefUnwindSafe for DeleteMyCommands
impl Send for DeleteMyCommands
impl Sync for DeleteMyCommands
impl Unpin for DeleteMyCommands
impl UnsafeUnpin 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