Struct terminal_cli::CliCommand [] [src]

pub struct CliCommand<'a> {
    pub command: Cow<'a, str>,
    pub help: Option<Cow<'a, str>>,
}

A command that can be matched by the command line prompt

Fields

Prefix with which the line should start.

Help for this command. Will be shown in case user requests it with 'help [command]' or this command is the only one left when autocompleting

Trait Implementations

impl<'a> Debug for CliCommand<'a>
[src]

[src]

Formats the value using the given formatter.

impl<'a> Clone for CliCommand<'a>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'a> PartialEq for CliCommand<'a>
[src]

[src]

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

[src]

This method tests for !=.