pub trait ModelSchema {
// Required method
fn schema() -> SchemaTable;
}Expand description
A trait for models that can provide their own schema metadata.
Required Methods§
Sourcefn schema() -> SchemaTable
fn schema() -> SchemaTable
Returns the schema metadata for this model.
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.