Skip to main content

PrimaryKeyCodec

Trait PrimaryKeyCodec 

Source
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§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl PrimaryKeyCodec for ()

Source§

impl PrimaryKeyCodec for i8

Source§

impl PrimaryKeyCodec for i16

Source§

impl PrimaryKeyCodec for i32

Source§

impl PrimaryKeyCodec for i64

Source§

impl PrimaryKeyCodec for i128

Source§

impl PrimaryKeyCodec for u8

Source§

impl PrimaryKeyCodec for u16

Source§

impl PrimaryKeyCodec for u32

Source§

impl PrimaryKeyCodec for u64

Source§

impl PrimaryKeyCodec for u128

Implementors§