Trait ink_storage_traits::AutoStorableHint

source ·
pub trait AutoStorableHint<Key: StorageKey> {
    type Type: Storable;
}
Expand description

Automatically returns the type that should be used for storing the value.

The trait is used by codegen to determine which storage key the type should have.

Required Associated Types§

source

type Type: Storable

Storable type with storage key inside.

Implementors§

source§

impl<T, const KEY: Key, ParentKey> AutoStorableHint<ManualKey<KEY, ParentKey>> for T
where T: StorableHint<ParentKey> + StorableHint<ResolverKey<<T as StorableHint<ParentKey>>::PreferredKey, ManualKey<KEY, ParentKey>>>, <T as StorableHint<ParentKey>>::PreferredKey: KeyType, ParentKey: StorageKey,

§

type Type = <T as StorableHint<ResolverKey<<T as StorableHint<ParentKey>>::PreferredKey, ManualKey<KEY, ParentKey>>>>::Type