Struct twilight_model::application::command::OptionsCommandOptionData [−][src]
pub struct OptionsCommandOptionData {
pub description: String,
pub name: String,
pub options: Vec<CommandOption>,
pub required: bool,
}Expand description
Data supplied to a CommandOption of type SubCommand or
SubCommandGroup.
Fields
description: StringDescription of the option. It must be 100 characters or less.
name: StringName of the option. It must be 32 characters or less.
options: Vec<CommandOption>Used for specifying the nested options in a SubCommand or
SubCommandGroup.
required: boolWhether the option is required to be completed by a user.
Trait Implementations
Returns the “default value” for a type. Read more
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
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 OptionsCommandOptionData
impl Send for OptionsCommandOptionData
impl Sync for OptionsCommandOptionData
impl Unpin for OptionsCommandOptionData
impl UnwindSafe for OptionsCommandOptionData
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more