Struct commands::parser::CompletionOption [] [src]

pub struct CompletionOption {
    pub option_string: String,
    pub complete: bool,
}

Represents a single option returned by complete.

An option may be complete, which means that it represents a syntactically complete parameter value which can be used as-is, whereas incomplete options are not valid values.

Fields

option_string

String for this option.

complete

True if this option is complete and a valid value.

Methods

impl CompletionOption

fn new(option_string: String, complete: bool) -> CompletionOption

CompletionOption constructor