pub struct OptionsCommandOptionData {
pub description: String,
pub name: String,
pub options: Vec<CommandOption>,
}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.
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
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