pub trait Command {
// Required methods
fn execute(&self) -> Result<String>;
fn name(&self) -> &'static str;
fn description(&self) -> &'static str;
}
Expand description
Trait for commands that can be executed
Required Methods§
Sourcefn description(&self) -> &'static str
fn description(&self) -> &'static str
Get a brief description of what the command does