pub struct GetMyCommands { /* private fields */ }Expand description
Builder for the getMyCommands method.
Implementations§
Source§impl GetMyCommands
impl GetMyCommands
Sourcepub fn scope(self, s: BotCommandScope) -> Self
pub fn scope(self, s: BotCommandScope) -> Self
Restricts the list of retrieved 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
The language code for localised command lists (IETF tag, e.g. "en").
Trait Implementations§
Source§impl IntoFuture for GetMyCommands
impl IntoFuture for GetMyCommands
Source§type Output = Result<Vec<BotCommand>, Error>
type Output = Result<Vec<BotCommand>, Error>
The output that the future will produce on completion.
Source§type IntoFuture = Pin<Box<dyn Future<Output = <GetMyCommands as IntoFuture>::Output> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = <GetMyCommands 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 GetMyCommands
impl !RefUnwindSafe for GetMyCommands
impl Send for GetMyCommands
impl Sync for GetMyCommands
impl Unpin for GetMyCommands
impl UnsafeUnpin for GetMyCommands
impl !UnwindSafe for GetMyCommands
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