pub trait Command {
const COMMAND: CommandInfo;
}Expand description
Compile-time description of a command line interface, implemented by
#[derive(GetArgs)].
The metadata is &'static and available without the std feature. It is what the shell
completion and man page generators of the std feature read, and can be inspected to build
other tools.
See Shell Completions and Man Pages.
Required Associated Constants§
Sourceconst COMMAND: CommandInfo
const COMMAND: CommandInfo
The description of the command.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".