pub struct CompletionEntry {
pub value: String,
pub label: Option<String>,
pub description: Option<String>,
pub tag: Option<String>,
pub tone: Option<String>,
pub sort_tier: Option<i64>,
}Expand description
One completion candidate (ui-protocol §7.3).
Fields§
§value: StringText that replaces text[from..cursor].
label: Option<String>Label shown (defaults to value).
description: Option<String>Extra description.
tag: Option<String>Short tag (dir, skill, …).
tone: Option<String>Tone (ui-protocol §6.5).
sort_tier: Option<i64>Lower tiers sort first.
Trait Implementations§
Source§impl Clone for CompletionEntry
impl Clone for CompletionEntry
Source§impl Debug for CompletionEntry
impl Debug for CompletionEntry
Source§impl Default for CompletionEntry
impl Default for CompletionEntry
Source§impl<'de> Deserialize<'de> for CompletionEntry
impl<'de> Deserialize<'de> for CompletionEntry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CompletionEntry
Source§impl PartialEq for CompletionEntry
impl PartialEq for CompletionEntry
Source§impl Serialize for CompletionEntry
impl Serialize for CompletionEntry
impl StructuralPartialEq for CompletionEntry
Auto Trait Implementations§
impl Freeze for CompletionEntry
impl RefUnwindSafe for CompletionEntry
impl Send for CompletionEntry
impl Sync for CompletionEntry
impl Unpin for CompletionEntry
impl UnsafeUnpin for CompletionEntry
impl UnwindSafe for CompletionEntry
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.