pub trait PrimaryKeyCodec {
// Required method
fn to_primary_key_value(
&self,
) -> Result<PrimaryKeyValue, PrimaryKeyEncodeError>;
}Expand description
PrimaryKeyCodec
Narrow typed primary-key codec for persistence and indexing admission.
This keeps typed key ownership off the runtime Value bridge so persisted
identity boundaries can encode directly into the internal decoded
primary-key value.
Required Methods§
fn to_primary_key_value(&self) -> Result<PrimaryKeyValue, PrimaryKeyEncodeError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".