pub struct AutocompleteItem {
pub value: String,
pub label: String,
pub description: Option<String>,
}Expand description
A suggestion item for autocomplete.
Fields§
§value: String§label: String§description: Option<String>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 moreSource§impl Debug for AutocompleteItem
impl Debug for AutocompleteItem
Source§impl From<AutocompleteItem> for SelectItem
impl From<AutocompleteItem> for SelectItem
Source§fn from(item: AutocompleteItem) -> Self
fn from(item: AutocompleteItem) -> Self
Converts to this type from the input type.
Auto 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