pub struct CompletionOption {
pub value: String,
pub label: Option<String>,
pub completion_type: Option<String>,
pub documentation: Option<String>,
pub sort_priority: Option<i32>,
pub insert_text: Option<String>,
}
Expand description
Completion option with metadata
Fields§
§value: String
Completion value
label: Option<String>
Human-readable label
completion_type: Option<String>
Completion type (value, keyword, function, etc.)
documentation: Option<String>
Additional documentation
sort_priority: Option<i32>
Sort priority (lower = higher priority)
insert_text: Option<String>
Whether this option requires additional input
Trait Implementations§
Source§impl Clone for CompletionOption
impl Clone for CompletionOption
Source§fn clone(&self) -> CompletionOption
fn clone(&self) -> CompletionOption
Returns a duplicate 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 CompletionOption
impl Debug for CompletionOption
Source§impl<'de> Deserialize<'de> for CompletionOption
impl<'de> Deserialize<'de> for CompletionOption
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
Auto Trait Implementations§
impl Freeze for CompletionOption
impl RefUnwindSafe for CompletionOption
impl Send for CompletionOption
impl Sync for CompletionOption
impl Unpin for CompletionOption
impl UnwindSafe for CompletionOption
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