#[non_exhaustive]pub enum AutocompleteChoices {
String(Vec<Choice<CompactString>>),
Integer(Vec<Choice<i64>>),
Number(Vec<Choice<f64>>),
}Expand description
Autocomplete suggestions, typed like the option being completed.
discord.js counterpart: the choices of APICommandAutocompleteInteractionResponseCallbackData (discord-api-types).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
String(Vec<Choice<CompactString>>)
Choices of a string option.
Integer(Vec<Choice<i64>>)
Choices of an integer option.
Number(Vec<Choice<f64>>)
Choices of a number option.
Trait Implementations§
Source§impl Clone for AutocompleteChoices
impl Clone for AutocompleteChoices
Source§impl Debug for AutocompleteChoices
impl Debug for AutocompleteChoices
Source§impl PartialEq for AutocompleteChoices
impl PartialEq for AutocompleteChoices
Source§impl Serialize for AutocompleteChoices
impl Serialize for AutocompleteChoices
impl StructuralPartialEq for AutocompleteChoices
Auto Trait Implementations§
impl Freeze for AutocompleteChoices
impl RefUnwindSafe for AutocompleteChoices
impl Send for AutocompleteChoices
impl Sync for AutocompleteChoices
impl Unpin for AutocompleteChoices
impl UnsafeUnpin for AutocompleteChoices
impl UnwindSafe for AutocompleteChoices
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