pub trait SetMyCommandsSetters: HasPayload<Payload = SetMyCommands> + Sized {
    // Provided methods
    fn commands<T>(self, value: T) -> Self
       where T: IntoIterator<Item = BotCommand> { ... }
    fn scope(self, value: BotCommandScope) -> Self { ... }
    fn language_code<T>(self, value: T) -> Self
       where T: Into<String> { ... }
}
Expand description

Setters for fields of SetMyCommands

Provided Methods§

source

fn commands<T>(self, value: T) -> Selfwhere T: IntoIterator<Item = BotCommand>,

Setter for commands field.

source

fn scope(self, value: BotCommandScope) -> Self

Setter for scope field.

source

fn language_code<T>(self, value: T) -> Selfwhere T: Into<String>,

Setter for language_code field.

Implementors§

source§

impl<P> SetMyCommandsSetters for Pwhere P: HasPayload<Payload = SetMyCommands>,