pub trait ModuleCallJsonSchema: Module {
// Required method
fn json_schema() -> String;
}Expand description
A Module that has a well-defined and known JSON
Schema for its Module::CallMessage.
This trait is intended to support code generation tools, CLIs, and
documentation. You can derive it with #[derive(ModuleCallJsonSchema)], or
implement it manually if your use case demands more control over the JSON
Schema generation.
Required Methods§
sourcefn json_schema() -> String
fn json_schema() -> String
Returns the JSON schema for Module::CallMessage.