pub trait Category:
Copy
+ Eq
+ Hash
+ Glyph
+ 'static {
// Required methods
fn label(&self) -> &'static str;
fn order(&self) -> u8;
// Provided methods
fn cli_prefix(&self) -> &'static str { ... }
fn cli_name(&self) -> &'static str { ... }
fn description(&self) -> &'static str { ... }
}Required Methods§
Provided Methods§
Sourcefn cli_prefix(&self) -> &'static str
fn cli_prefix(&self) -> &'static str
CLI prefix for commands in this category (e.g. “certmesh “, “mdns “). Used by compact/stripped rendering to derive short command names.
Sourcefn cli_name(&self) -> &'static str
fn cli_name(&self) -> &'static str
Short CLI name shown in overview mode (e.g. “certmesh”, “mdns”).
Sourcefn description(&self) -> &'static str
fn description(&self) -> &'static str
One-line description of what this category does.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".