pub struct ApplicationCommandOptionChoice {
pub name: String,
pub name_localizations: Option<HashMap<String, String>>,
pub value: ApplicationCommandOptionChoiceValue,
}
Expand description
Fields§
§name: String
1-100 character choice name
name_localizations: Option<HashMap<String, String>>
Localization dictionary for the name field. Values follow the same restrictions as name
value: ApplicationCommandOptionChoiceValue
Value for the choice, up to 100 characters if string
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ApplicationCommandOptionChoice
impl RefUnwindSafe for ApplicationCommandOptionChoice
impl Send for ApplicationCommandOptionChoice
impl Sync for ApplicationCommandOptionChoice
impl Unpin for ApplicationCommandOptionChoice
impl UnwindSafe for ApplicationCommandOptionChoice
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more