Skip to main content

EntitySchema

Trait EntitySchema 

Source
pub trait EntitySchema: EntityKey {
    const NAME: &'static str;
    const MODEL: &'static EntityModel;
}
Expand description

EntitySchema

Declared runtime schema facts for an entity.

NAME seeds self-referential model construction for relation metadata. MODEL remains the authoritative runtime authority for field, primary-key, and index metadata consumed by planning and execution.

Required Associated Constants§

Source

const NAME: &'static str

Source

const MODEL: &'static EntityModel

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§