pub trait JsonSchemaGenerator {
// Required method
fn json_schema() -> ToolSchema;
}
Expand description
Trait for generating JSON schemas from Rust types
Required Methods§
Sourcefn json_schema() -> ToolSchema
fn json_schema() -> ToolSchema
Generate a ToolSchema for this type
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.