Skip to main content

EntityDeclaration

Trait EntityDeclaration 

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

Generated declaration facts for an entity type.

NAME seeds self-referential generated relation metadata. MODEL is a proposal consumed during reconciliation; accepted schema snapshots remain the runtime authority for storage, planning, and execution.

Required Associated Constants§

Source

const NAME: &'static str

Stable schema-visible entity name.

Source

const MODEL: &'static EntityModel

Generated model proposal for reconciliation and model-only tooling.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§