pub struct AutocompleteItem {
pub value: String,
pub label: String,
pub description: Option<String>,
}Expand description
An autocomplete item for slash command arguments.
Fields§
§value: StringThe value to insert when selected.
label: StringDisplay label.
description: Option<String>Optional description.
Trait Implementations§
Source§impl Clone for AutocompleteItem
impl Clone for AutocompleteItem
Source§fn clone(&self) -> AutocompleteItem
fn clone(&self) -> AutocompleteItem
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Freeze for AutocompleteItem
impl RefUnwindSafe for AutocompleteItem
impl Send for AutocompleteItem
impl Sync for AutocompleteItem
impl Unpin for AutocompleteItem
impl UnsafeUnpin for AutocompleteItem
impl UnwindSafe for AutocompleteItem
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