Enum twilight_model::application::command::CommandOption [−][src]
pub enum CommandOption {
SubCommand(OptionsCommandOptionData),
SubCommandGroup(OptionsCommandOptionData),
String(ChoiceCommandOptionData),
Integer(ChoiceCommandOptionData),
Boolean(BaseCommandOptionData),
User(BaseCommandOptionData),
Channel(BaseCommandOptionData),
Role(BaseCommandOptionData),
Mentionable(BaseCommandOptionData),
}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)SubCommandGroup(OptionsCommandOptionData)String(ChoiceCommandOptionData)Integer(ChoiceCommandOptionData)Boolean(BaseCommandOptionData)User(BaseCommandOptionData)Channel(BaseCommandOptionData)Role(BaseCommandOptionData)Mentionable(BaseCommandOptionData)Implementations
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 CommandOptionimpl Send for CommandOptionimpl Sync for CommandOptionimpl Unpin for CommandOptionimpl UnwindSafe for CommandOptionBlanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more