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§
fn from_storage_key(key: StorageKey) -> Result<Self, InternalError>
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.