Struct command::object::Choice
zaun_community_protocol::command::object::Choice · Struct
pub struct Choice { … }A predefined choice of an option, or an autocomplete result.
Fields
Section titled “Fields”name: String
Section titled “name: String”1–100 scalars.
name_localizations: BTreeMap<String, String>
Section titled “name_localizations: BTreeMap<String, String>”Localized names by BCP 47 tag.
value: ChoiceValue
Section titled “value: ChoiceValue”What the bot receives.
Trait implementations
Section titled “Trait implementations”Clone, Debug, Deserialize<'de>, PartialEq, Serialize, StructuralPartialEq