Skip to main content

StorageKeyDecode

Trait StorageKeyDecode 

Source
pub trait StorageKeyDecode: Sized {
    // Required method
    fn from_storage_key(key: StorageKey) -> Result<Self, InternalError>;
}
Expand description

StorageKeyDecode

Narrow typed storage-key decode contract for persistence and indexing boundaries. This keeps typed key recovery off the runtime StorageKey -> Value bridge so persisted identity boundaries can decode directly from StorageKey.

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl StorageKeyDecode for i8

Source§

impl StorageKeyDecode for i16

Source§

impl StorageKeyDecode for i32

Source§

impl StorageKeyDecode for i64

Source§

impl StorageKeyDecode for u8

Source§

impl StorageKeyDecode for u16

Source§

impl StorageKeyDecode for u32

Source§

impl StorageKeyDecode for u64

Source§

impl StorageKeyDecode for ()

Implementors§