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

The label of this completion item. By default this is also the text that is inserted when selecting this completion.

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.

If text is not falsy then it is inserted instead of the label.

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]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for CompletionItem
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Debug for CompletionItem
[src]

Formats the value using the given formatter.