Skip to main content

PrimaryKeyDecode

Trait PrimaryKeyDecode 

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

Source

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".

Implementations on Foreign Types§

Source§

impl PrimaryKeyDecode for i8

Source§

fn from_primary_key_value(key: &PrimaryKeyValue) -> Result<Self, InternalError>

Source§

impl PrimaryKeyDecode for i16

Source§

fn from_primary_key_value(key: &PrimaryKeyValue) -> Result<Self, InternalError>

Source§

impl PrimaryKeyDecode for i32

Source§

fn from_primary_key_value(key: &PrimaryKeyValue) -> Result<Self, InternalError>

Source§

impl PrimaryKeyDecode for i64

Source§

fn from_primary_key_value(key: &PrimaryKeyValue) -> Result<Self, InternalError>

Source§

impl PrimaryKeyDecode for i128

Source§

fn from_primary_key_value(key: &PrimaryKeyValue) -> Result<Self, InternalError>

Source§

impl PrimaryKeyDecode for u8

Source§

fn from_primary_key_value(key: &PrimaryKeyValue) -> Result<Self, InternalError>

Source§

impl PrimaryKeyDecode for u16

Source§

fn from_primary_key_value(key: &PrimaryKeyValue) -> Result<Self, InternalError>

Source§

impl PrimaryKeyDecode for u32

Source§

fn from_primary_key_value(key: &PrimaryKeyValue) -> Result<Self, InternalError>

Source§

impl PrimaryKeyDecode for u64

Source§

fn from_primary_key_value(key: &PrimaryKeyValue) -> Result<Self, InternalError>

Source§

impl PrimaryKeyDecode for u128

Source§

fn from_primary_key_value(key: &PrimaryKeyValue) -> Result<Self, InternalError>

Source§

impl PrimaryKeyDecode for ()

Source§

fn from_primary_key_value(key: &PrimaryKeyValue) -> Result<Self, InternalError>

Implementors§