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§
fn schema() -> CommandSchema
fn from_parsed(parsed: &ParseResult) -> Result<Self>
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.