pub trait Schema {
// Required method
fn schema() -> SchemaType;
}Expand description
A description of the format of a type
Required Methods§
Sourcefn schema() -> SchemaType
fn schema() -> SchemaType
Get the schema for the 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.