Struct debugserver_types::CompletionItem
[−]
[src]
pub struct CompletionItem { pub label: String, pub length: Option<i64>, pub start: Option<i64>, pub text: Option<String>, pub type_: Option<CompletionItemType>, }
CompletionItems are the suggestions returned from the CompletionsRequest.
Fields
label: String
The label of this completion item. By default this is also the text that is inserted when selecting this completion.
length: Option<i64>
start: Option<i64>
When a completion is selected it replaces 'length' characters starting at 'start' in the text passed to the CompletionsRequest. If missing the frontend will try to determine these values heuristically.
text: Option<String>
If text is not falsy then it is inserted instead of the label.
type_: Option<CompletionItemType>
The item's type. Typically the client uses this information to render the item in the UI with an icon.
Trait Implementations
impl Clone for CompletionItem
[src]
fn clone(&self) -> CompletionItem
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
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 !=
.