Struct command::object::OptionValue
zaun_community_protocol::command::object::OptionValue · Struct
pub struct OptionValue { … }One option of an invoked command.
Fields
Section titled “Fields”name: String
Section titled “name: String”The option’s name.
kind: OptionType
Section titled “kind: OptionType”The option’s type.
value: Option<OptionValueKind>
Section titled “value: Option<OptionValueKind>”Absent for subcommands and groups.
options: Vec<OptionValue>
Section titled “options: Vec<OptionValue>”A subcommand’s options.
focused: bool
Section titled “focused: bool”The option being typed (autocomplete only).
Trait implementations
Section titled “Trait implementations”Clone, Debug, Deserialize<'de>, PartialEq, Serialize, StructuralPartialEq