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§fn clone(&self) -> CompletionEntry
fn clone(&self) -> CompletionEntry
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 CompletionEntry
impl Debug for CompletionEntry
Source§impl Default for CompletionEntry
impl Default for CompletionEntry
Source§fn default() -> CompletionEntry
fn default() -> CompletionEntry
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CompletionEntry
impl<'de> Deserialize<'de> for CompletionEntry
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CompletionEntry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CompletionEntry, <__D as Deserializer<'de>>::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
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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.