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
Tuple Fields of SubCommand
Tuple Fields of SubCommandGroup
Tuple Fields of String
Tuple Fields of Integer
Tuple Fields of Boolean
Tuple Fields of User
Tuple Fields of Channel
Tuple Fields of Role
Tuple Fields of Mentionable
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 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
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more