pub trait Schematic {
// Provided method
fn generate_schema() -> SchemaType { ... }
}Expand description
Defines a schema that represents the shape of the implementing type.
Provided Methods§
sourcefn generate_schema() -> SchemaType
fn generate_schema() -> SchemaType
Create and return a schema that models the structure of the implementing type. The schema can be used to generate code, documentation, or other artifacts.
Object Safety§
This trait is not object safe.