pub trait PrimaryKeyDecode: Sized {
// Required method
fn from_primary_key_value(
key: &PrimaryKeyValue,
) -> Result<Self, InternalError>;
}Expand description
PrimaryKeyDecode
Narrow typed primary-key decode contract for persistence and indexing
boundaries.
This keeps typed key recovery off the runtime Value bridge so persisted
identity boundaries can decode directly from the internal decoded
primary-key value.
Required Methods§
fn from_primary_key_value(key: &PrimaryKeyValue) -> Result<Self, InternalError>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".