Trait leetcode_cli::cmds::Command [−][src]
pub trait Command {
fn usage<'a, 'c>() -> App<'a, 'c>;
fn handler<'life0, 'life1, 'async_trait>(
m: &'life0 ArgMatches<'life1>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait;
}
Expand description
Abstract commands’ trait.
Required methods
Implementors
implement Command trait for list