Trait 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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

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