Trait twilight_interactions::command::CreateOption[][src]

pub trait CreateOption: Sized {
    fn create_option(data: CommandOptionData) -> CommandOption;
}
Expand description

Trait to create a CommandOption from a type.

This trait allow to create a CommandOption for a type. It is primarily used in the implementation generated when deriving CreateCommand.

Provided implementations

This trait is implemented on the same types as the CommandOption trait. Please refer to its documentation for the full list.

Required methods

Create a CommandOption from this type.

Implementations on Foreign Types

Implementors