Struct commands::parser::Completion [] [src]

pub struct Completion<'text> {
    pub help_symbol: String,
    pub help_text: String,
    pub token: Option<Token<'text>>,
    pub exhaustive: bool,
    pub options: Vec<CompletionOption>,
}

Represents the result of completing a node. Each valid completion is represented by a CompletionOption.

This may be hinted by a pre-existing token.

If a completion is exhaustive, then only the CompletionOptions provided are valid.

The lifetime parameter 'text refers to the lifetime of the body of text which generated the Token.

Fields

Value placeholder for help.

Main help text.

Token used to hint the completion, if provided.

Was this completion exhaustive? If yes, then only the given completion options are valid.

The actual completion options.

Methods

impl<'text> Completion<'text>
[src]

Construct a new Completion.