Trait teloxide_core::payloads::SetMyCommandsSetters
source · 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§
sourcefn commands<T>(self, value: T) -> Selfwhere
T: IntoIterator<Item = BotCommand>,
fn commands<T>(self, value: T) -> Selfwhere T: IntoIterator<Item = BotCommand>,
Setter for commands
field.
sourcefn scope(self, value: BotCommandScope) -> Self
fn scope(self, value: BotCommandScope) -> Self
Setter for scope
field.
sourcefn language_code<T>(self, value: T) -> Selfwhere
T: Into<String>,
fn language_code<T>(self, value: T) -> Selfwhere T: Into<String>,
Setter for language_code
field.