Skip to main content

EntityIdentity

Trait EntityIdentity 

Source
pub trait EntityIdentity {
    type Id: EntityKey;

    const ENTITY_NAME: &'static str;
    const PRIMARY_KEY: &'static str;
}
Expand description

EntityIdentity Identity-only facts about an entity.

Required Associated Constants§

Source

const ENTITY_NAME: &'static str

Source

const PRIMARY_KEY: &'static str

Required Associated Types§

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§