#[non_exhaustive]pub struct AutocompleteOption<'a> {
pub name: &'a str,
pub kind: CommandOptionType,
pub value: &'a str,
}
Expand description
The focused option for autocomplete interactions return by CommandData::autocomplete
.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.name: &'a str
§kind: CommandOptionType
§value: &'a str
Trait Implementations§
Source§impl<'a> Clone for AutocompleteOption<'a>
impl<'a> Clone for AutocompleteOption<'a>
Source§fn clone(&self) -> AutocompleteOption<'a>
fn clone(&self) -> AutocompleteOption<'a>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<'a> Freeze for AutocompleteOption<'a>
impl<'a> RefUnwindSafe for AutocompleteOption<'a>
impl<'a> Send for AutocompleteOption<'a>
impl<'a> Sync for AutocompleteOption<'a>
impl<'a> Unpin for AutocompleteOption<'a>
impl<'a> UnwindSafe for AutocompleteOption<'a>
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