pub struct ApplicationCommandOptionChoice {
pub name: String,
pub name_localizations: Option<HashMap<String, String>>,
pub value: ApplicationCommandOptionChoiceValue,
}Expand description
Fields§
§name: String1-100 character choice name
name_localizations: Option<HashMap<String, String>>Localization dictionary for the name field. Values follow the same restrictions as name
value: ApplicationCommandOptionChoiceValueValue for the choice, up to 100 characters if string
Trait Implementations§
Source§impl IntoChoice for ApplicationCommandOptionChoice
impl IntoChoice for ApplicationCommandOptionChoice
Source§fn into_choice(self) -> ApplicationCommandOptionChoice
fn into_choice(self) -> ApplicationCommandOptionChoice
The suggestion’s name (shown) and value (sent)
Auto Trait Implementations§
impl Freeze for ApplicationCommandOptionChoice
impl RefUnwindSafe for ApplicationCommandOptionChoice
impl Send for ApplicationCommandOptionChoice
impl Sync for ApplicationCommandOptionChoice
impl Unpin for ApplicationCommandOptionChoice
impl UnsafeUnpin 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