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§

source

fn commands<T>(self, value: T) -> Self
where 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) -> Self
where T: Into<String>,

Setter for language_code field.

Object Safety§

This trait is not object safe.

Implementors§

source§

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