Skip to main content

Command

Trait Command 

Source
pub trait Command: Sized {
    // Required methods
    fn schema() -> CommandSchema;
    fn from_parsed(parsed: &ParseResult) -> Result<Self>;
}
Expand description

A command (root or subcommand) that knows how to produce its argument schema and how to construct itself from a ParseResult.

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§