Trait exonum::helpers::fabric::CommandExtension
[−]
[src]
pub trait CommandExtension { fn args(&self) -> Vec<Argument>; fn execute(&self, context: Context) -> Result<Context, Box<Error>>; }
CommandExtension
is used for extending the existing commands.
Required Methods
fn args(&self) -> Vec<Argument>
Returns arguments of the command.
fn execute(&self, context: Context) -> Result<Context, Box<Error>>
Executes command.