Trait frame_support::traits::PartialStorageInfoTrait
source · pub trait PartialStorageInfoTrait {
// Required method
fn partial_storage_info() -> Vec<StorageInfo>;
}
Expand description
Similar to StorageInfoTrait
, a trait to give partial information about storage.
This is useful when a type can give some partial information with its generic parameter doesn’t implement some bounds.
Required Methods§
fn partial_storage_info() -> Vec<StorageInfo>
Object Safety§
This trait is not object safe.
Implementors§
impl<Prefix, Hasher1, Hasher2, Key1, Key2, Value, QueryKind, OnEmpty, MaxValues> PartialStorageInfoTrait for StorageDoubleMap<Prefix, Hasher1, Key1, Hasher2, Key2, Value, QueryKind, OnEmpty, MaxValues>where
Prefix: StorageInstance,
Hasher1: StorageHasher,
Hasher2: StorageHasher,
Key1: FullCodec,
Key2: FullCodec,
Value: FullCodec,
QueryKind: QueryKindTrait<Value, OnEmpty>,
OnEmpty: Get<QueryKind::Query> + 'static,
MaxValues: Get<Option<u32>>,
It doesn’t require to implement MaxEncodedLen
and give no information for max_size
.
impl<Prefix, Hasher, Key, Value, QueryKind, OnEmpty, MaxValues> PartialStorageInfoTrait for CountedStorageMap<Prefix, Hasher, Key, Value, QueryKind, OnEmpty, MaxValues>where
Prefix: CountedStorageMapInstance,
Hasher: StorageHasher,
Key: FullCodec,
Value: FullCodec,
QueryKind: QueryKindTrait<Value, OnEmpty>,
OnEmpty: Get<QueryKind::Query> + 'static,
MaxValues: Get<Option<u32>>,
It doesn’t require to implement MaxEncodedLen
and give no information for max_size
.
impl<Prefix, Hasher, Key, Value, QueryKind, OnEmpty, MaxValues> PartialStorageInfoTrait for StorageMap<Prefix, Hasher, Key, Value, QueryKind, OnEmpty, MaxValues>where
Prefix: StorageInstance,
Hasher: StorageHasher,
Key: FullCodec,
Value: FullCodec,
QueryKind: QueryKindTrait<Value, OnEmpty>,
OnEmpty: Get<QueryKind::Query> + 'static,
MaxValues: Get<Option<u32>>,
It doesn’t require to implement MaxEncodedLen
and give no information for max_size
.
impl<Prefix, Key, Value, QueryKind, OnEmpty, MaxValues> PartialStorageInfoTrait for CountedStorageNMap<Prefix, Key, Value, QueryKind, OnEmpty, MaxValues>where
Prefix: CountedStorageNMapInstance,
Key: KeyGenerator,
Value: FullCodec,
QueryKind: QueryKindTrait<Value, OnEmpty>,
OnEmpty: Get<QueryKind::Query> + 'static,
MaxValues: Get<Option<u32>>,
It doesn’t require to implement MaxEncodedLen
and give no information for max_size
.
impl<Prefix, Key, Value, QueryKind, OnEmpty, MaxValues> PartialStorageInfoTrait for StorageNMap<Prefix, Key, Value, QueryKind, OnEmpty, MaxValues>where
Prefix: StorageInstance,
Key: KeyGenerator,
Value: FullCodec,
QueryKind: QueryKindTrait<Value, OnEmpty>,
OnEmpty: Get<QueryKind::Query> + 'static,
MaxValues: Get<Option<u32>>,
It doesn’t require to implement MaxEncodedLen
and give no information for max_size
.
impl<Prefix, Value, QueryKind, OnEmpty> PartialStorageInfoTrait for StorageValue<Prefix, Value, QueryKind, OnEmpty>where
Prefix: StorageInstance,
Value: FullCodec,
QueryKind: QueryKindTrait<Value, OnEmpty>,
OnEmpty: Get<QueryKind::Query> + 'static,
It doesn’t require to implement MaxEncodedLen
and give no information for max_size
.