pub struct SetMyCommands { /* private fields */ }Expand description
Builder for the setMyCommands method.
Implementations§
Source§impl SetMyCommands
impl SetMyCommands
Sourcepub fn scope(self, s: BotCommandScope) -> Self
pub fn scope(self, s: BotCommandScope) -> Self
Restricts these commands to a specific scope (chat type or individual chat).
Sourcepub fn language_code(self, lc: impl Into<String>) -> Self
pub fn language_code(self, lc: impl Into<String>) -> Self
Sets the language code for localised command lists (IETF tag, e.g. "en").
Trait Implementations§
Source§impl IntoFuture for SetMyCommands
impl IntoFuture for SetMyCommands
Source§type IntoFuture = Pin<Box<dyn Future<Output = <SetMyCommands as IntoFuture>::Output> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = <SetMyCommands 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 SetMyCommands
impl !RefUnwindSafe for SetMyCommands
impl Send for SetMyCommands
impl Sync for SetMyCommands
impl Unpin for SetMyCommands
impl UnsafeUnpin for SetMyCommands
impl !UnwindSafe for SetMyCommands
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