pub trait EntityKey {
type Key: Copy + Debug + Eq + Ord + KeyValueCodec + PrimaryKeyEncode + PrimaryKeyDecode + EntityKeyBytes + 'static;
}Expand description
Associates an entity with the primitive or composite type used as its primary key.
Keys are public identifiers rather than authority-bearing capabilities.
Typed identity is provided by Id<Self>, not by the key itself.
Required Associated Types§
type Key: Copy + Debug + Eq + Ord + KeyValueCodec + PrimaryKeyEncode + PrimaryKeyDecode + EntityKeyBytes + 'static
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".