Trait ink_storage_traits::StorageKey

source ·
pub trait StorageKey {
    const KEY: Key;

    // Provided method
    fn key(&self) -> Key { ... }
}
Expand description

Holds storage key for the type.

§Note

The trait is automatically implemented for Packed types via blanket implementation.

Required Associated Constants§

source

const KEY: Key

Storage key of the type.

Provided Methods§

source

fn key(&self) -> Key

Returns the storage key.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl StorageKey for AutoKey

source§

const KEY: Key = 0u32

source§

impl<L, R> StorageKey for ResolverKey<L, R>
where L: StorageKey + KeyType, R: StorageKey + KeyType,

source§

const KEY: Key = _

source§

impl<P> StorageKey for P
where P: Packed,

source§

const KEY: Key = 0u32

source§

impl<const KEY: Key, ParentKey: StorageKey> StorageKey for ManualKey<KEY, ParentKey>

source§

const KEY: Key = _