pub trait EntityIdentity: EntityKey {
const ENTITY_NAME: &'static str;
const PRIMARY_KEY: &'static str;
}Expand description
EntityIdentity
Semantic primary-key metadata about an entity.
These constants name identity metadata only. They do not imply trust, ownership, authorization, or existence.
Required Associated Constants§
const ENTITY_NAME: &'static str
const PRIMARY_KEY: &'static str
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.