pub trait PrimaryKeyCodec {
// Required method
fn to_primary_key_value(&self) -> Result<StorageKey, StorageKeyEncodeError>;
}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.