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
command: Cow<'a, str>
Prefix with which the line should start.
help: Option<Cow<'a, str>>
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]
impl<'a> Clone for CliCommand<'a>
[src]
fn clone(&self) -> CliCommand<'a>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'a> PartialEq for CliCommand<'a>
[src]
fn eq(&self, __arg_0: &CliCommand<'a>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &CliCommand<'a>) -> bool
[src]
This method tests for !=
.