pub struct CompletionItemDTO {
pub Label: Value,
pub Kind: u32,
pub Detail: Option<String>,
pub Documentation: Option<Value>,
pub SortText: Option<String>,
pub FilterText: Option<String>,
pub InsertText: Option<Value>,
pub Range: Option<Value>,
pub AdditionalTextEdits: Option<Vec<Value>>,
pub Command: Option<Value>,
}Expand description
A serializable struct representing a single completion item, analogous to
vscode.CompletionItem.
Fields§
§Label: ValueThe label of this completion item.
Kind: u32The kind of this completion item.
Detail: Option<String>A human-readable string with additional information about this item.
Documentation: Option<Value>A human-readable string that represents a doc-comment.
SortText: Option<String>A string that should be used when comparing this item with other items.
FilterText: Option<String>A string that should be used when filtering a set of completion items.
InsertText: Option<Value>A string or snippet that should be inserted in a document when selecting this completion.
Range: Option<Value>A range of text that should be replaced by this completion item.
AdditionalTextEdits: Option<Vec<Value>>An optional array of additional text edits that are applied when selecting this completion.
Command: Option<Value>A command that should be executed after inserting this completion.
Trait Implementations§
Source§impl Clone for CompletionItemDTO
impl Clone for CompletionItemDTO
Source§fn clone(&self) -> CompletionItemDTO
fn clone(&self) -> CompletionItemDTO
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 CompletionItemDTO
impl Debug for CompletionItemDTO
Source§impl<'de> Deserialize<'de> for CompletionItemDTO
impl<'de> Deserialize<'de> for CompletionItemDTO
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 CompletionItemDTO
impl RefUnwindSafe for CompletionItemDTO
impl Send for CompletionItemDTO
impl Sync for CompletionItemDTO
impl Unpin for CompletionItemDTO
impl UnwindSafe for CompletionItemDTO
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