pub struct AutocompleteSuggestion {
pub term: Cow<'static, str>,
pub summary: Cow<'static, str>,
}
Fields§
§term: Cow<'static, str>
§summary: Cow<'static, str>
Implementations§
Trait Implementations§
Source§impl Clone for AutocompleteSuggestion
impl Clone for AutocompleteSuggestion
Source§fn clone(&self) -> AutocompleteSuggestion
fn clone(&self) -> AutocompleteSuggestion
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 moreSource§impl Debug for AutocompleteSuggestion
impl Debug for AutocompleteSuggestion
Source§impl<A, B> From<(A, B)> for AutocompleteSuggestion
impl<A, B> From<(A, B)> for AutocompleteSuggestion
Source§impl From<AutocompleteSuggestion> for (Cow<'static, str>, Cow<'static, str>)
impl From<AutocompleteSuggestion> for (Cow<'static, str>, Cow<'static, str>)
Source§fn from(input: AutocompleteSuggestion) -> Self
fn from(input: AutocompleteSuggestion) -> Self
Converts to this type from the input type.
Source§impl Hash for AutocompleteSuggestion
impl Hash for AutocompleteSuggestion
Source§impl Ord for AutocompleteSuggestion
impl Ord for AutocompleteSuggestion
Source§fn cmp(&self, other: &AutocompleteSuggestion) -> Ordering
fn cmp(&self, other: &AutocompleteSuggestion) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AutocompleteSuggestion
impl PartialEq for AutocompleteSuggestion
Source§impl PartialOrd for AutocompleteSuggestion
impl PartialOrd for AutocompleteSuggestion
Source§impl Serialize for AutocompleteSuggestion
impl Serialize for AutocompleteSuggestion
impl Eq for AutocompleteSuggestion
impl StructuralPartialEq for AutocompleteSuggestion
Auto Trait Implementations§
impl Freeze for AutocompleteSuggestion
impl RefUnwindSafe for AutocompleteSuggestion
impl Send for AutocompleteSuggestion
impl Sync for AutocompleteSuggestion
impl Unpin for AutocompleteSuggestion
impl UnwindSafe for AutocompleteSuggestion
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