pub struct Suggestion {
pub value: String,
pub description: Option<String>,
}Expand description
A completion: the text it inserts, and an optional note beside it.
Fields§
§value: String§description: Option<String>Implementations§
Source§impl Suggestion
impl Suggestion
pub fn new(value: impl Into<String>) -> Suggestion
pub fn description(self, description: impl Into<String>) -> Suggestion
Trait Implementations§
Source§impl Clone for Suggestion
impl Clone for Suggestion
Source§impl Debug for Suggestion
impl Debug for Suggestion
impl Eq for Suggestion
Source§impl From<&str> for Suggestion
impl From<&str> for Suggestion
Source§fn from(value: &str) -> Suggestion
fn from(value: &str) -> Suggestion
Converts to this type from the input type.
Source§impl From<String> for Suggestion
impl From<String> for Suggestion
Source§fn from(value: String) -> Suggestion
fn from(value: String) -> Suggestion
Converts to this type from the input type.
Source§impl PartialEq for Suggestion
impl PartialEq for Suggestion
impl StructuralPartialEq for Suggestion
Auto Trait Implementations§
impl Freeze for Suggestion
impl RefUnwindSafe for Suggestion
impl Send for Suggestion
impl Sync for Suggestion
impl Unpin for Suggestion
impl UnsafeUnpin for Suggestion
impl UnwindSafe for Suggestion
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.