pub trait Describable: Parser {
// Provided methods
fn describable() -> Self { ... }
fn schema() -> ToolSchema { ... }
}Expand description
Trait for Clap-derived CLI structs to add --mtp-describe support.
Checks std::env::args() for --mtp-describe before parsing.
If found, prints the JSON schema and exits.
Otherwise, parses normally and returns the parsed value.
Provided Methods§
fn describable() -> Self
Sourcefn schema() -> ToolSchema
fn schema() -> ToolSchema
Generate the schema without side effects.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".