Struct languageserver_types::CompletionItem
[−]
[src]
pub struct CompletionItem { pub label: String, pub kind: Option<CompletionItemKind>, pub detail: Option<String>, pub documentation: Option<String>, pub sort_text: Option<String>, pub filter_text: Option<String>, pub insert_text: Option<String>, pub text_edit: Option<TextEdit>, pub data: Option<Value>, }
Fields
label: String
The label of this completion item. By default also the text that is inserted when selecting this completion.
kind: Option<CompletionItemKind>
The kind of this completion item. Based of the kind an icon is chosen by the editor.
detail: Option<String>
A human-readable string with additional information about this item, like type or symbol information.
documentation: Option<String>
A human-readable string that represents a doc-comment.
sort_text: Option<String>
A string that shoud be used when comparing this item
with other items. When falsy
the label is used.
filter_text: Option<String>
A string that should be used when filtering a set of
completion items. When falsy
the label is used.
insert_text: Option<String>
A string that should be inserted a document when selecting
this completion. When falsy
the label is used.
text_edit: Option<TextEdit>
An edit which is applied to a document when selecting this completion. When an edit is provided the value of insertText is ignored.
data: Option<Value>
An data entry field that is preserved on a completion item between a completion and a completion resolve request.
Trait Implementations
impl Debug for CompletionItem
[src]
impl PartialEq for CompletionItem
[src]
fn eq(&self, __arg_0: &CompletionItem) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &CompletionItem) -> bool
This method tests for !=
.
impl Default for CompletionItem
[src]
fn default() -> CompletionItem
Returns the "default value" for a type. Read more