Skip to main content

ModelSchema

Trait ModelSchema 

Source
pub trait ModelSchema {
    // Required method
    fn schema() -> SchemaTable;
}
Expand description

A trait for models that can provide their own schema metadata.

Required Methods§

Source

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.

Implementors§