Enum twilight_model::application::command::CommandOption [−][src]
pub enum CommandOption {
SubCommand(OptionsCommandOptionData),
SubCommandGroup(OptionsCommandOptionData),
String(ChoiceCommandOptionData),
Integer(NumberCommandOptionData),
Boolean(BaseCommandOptionData),
User(BaseCommandOptionData),
Channel(ChannelCommandOptionData),
Role(BaseCommandOptionData),
Mentionable(BaseCommandOptionData),
Number(NumberCommandOptionData),
}Expand description
Option for a Command.
It can also be nested under another CommandOption of type SubCommand
or SubCommandGroup.
Choices and options are mutually exclusive.
Variants
SubCommand(OptionsCommandOptionData)
Tuple Fields
SubCommandGroup(OptionsCommandOptionData)
Tuple Fields
String(ChoiceCommandOptionData)
Tuple Fields
Integer(NumberCommandOptionData)
Tuple Fields
Boolean(BaseCommandOptionData)
Tuple Fields
User(BaseCommandOptionData)
Tuple Fields
Channel(ChannelCommandOptionData)
Tuple Fields
Role(BaseCommandOptionData)
Tuple Fields
Mentionable(BaseCommandOptionData)
Tuple Fields
Number(NumberCommandOptionData)
Tuple Fields
Implementations
Whether the command supports autocomplete.
Trait Implementations
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for CommandOption
impl Send for CommandOption
impl Sync for CommandOption
impl Unpin for CommandOption
impl UnwindSafe for CommandOption
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
