referrerpolicy=no-referrer-when-downgrade
pub trait StorageEntryMetadataBuilder {
    // Required method
    fn build_metadata(
        deprecation_status: DeprecationStatusIR,
        doc: Vec<&'static str>,
        entries: &mut Vec<StorageEntryMetadataIR>,
    );
}
Expand description

Build the metadata of a storage.

Implemented by each of the storage types: value, map, countedmap, doublemap and nmap.

Required Methods§

source

fn build_metadata( deprecation_status: DeprecationStatusIR, doc: Vec<&'static str>, entries: &mut Vec<StorageEntryMetadataIR>, )

Build into entries the storage metadata entries of a storage given some docs.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<Prefix, Hasher1, Hasher2, Key1, Key2, Value, QueryKind, OnEmpty, MaxValues> StorageEntryMetadataBuilder for StorageDoubleMap<Prefix, Hasher1, Key1, Hasher2, Key2, Value, QueryKind, OnEmpty, MaxValues>
where Prefix: StorageInstance, Hasher1: StorageHasher, Hasher2: StorageHasher, Key1: FullCodec + StaticTypeInfo, Key2: FullCodec + StaticTypeInfo, Value: FullCodec + StaticTypeInfo, QueryKind: QueryKindTrait<Value, OnEmpty>, OnEmpty: Get<QueryKind::Query> + 'static, MaxValues: Get<Option<u32>>,

source§

impl<Prefix, Hasher, Key, Value, QueryKind, OnEmpty, MaxValues> StorageEntryMetadataBuilder for CountedStorageMap<Prefix, Hasher, Key, Value, QueryKind, OnEmpty, MaxValues>
where Prefix: CountedStorageMapInstance, Hasher: StorageHasher, Key: FullCodec + StaticTypeInfo, Value: FullCodec + StaticTypeInfo, QueryKind: QueryKindTrait<Value, OnEmpty>, OnEmpty: Get<QueryKind::Query> + 'static, MaxValues: Get<Option<u32>>,

source§

impl<Prefix, Hasher, Key, Value, QueryKind, OnEmpty, MaxValues> StorageEntryMetadataBuilder for StorageMap<Prefix, Hasher, Key, Value, QueryKind, OnEmpty, MaxValues>
where Prefix: StorageInstance, Hasher: StorageHasher, Key: FullCodec + StaticTypeInfo, Value: FullCodec + StaticTypeInfo, QueryKind: QueryKindTrait<Value, OnEmpty>, OnEmpty: Get<QueryKind::Query> + 'static, MaxValues: Get<Option<u32>>,

source§

impl<Prefix, Key, Value, QueryKind, OnEmpty, MaxValues> StorageEntryMetadataBuilder for CountedStorageNMap<Prefix, Key, Value, QueryKind, OnEmpty, MaxValues>
where Prefix: CountedStorageNMapInstance, Key: KeyGenerator, Value: FullCodec + StaticTypeInfo, QueryKind: QueryKindTrait<Value, OnEmpty>, OnEmpty: Get<QueryKind::Query> + 'static, MaxValues: Get<Option<u32>>,

source§

impl<Prefix, Key, Value, QueryKind, OnEmpty, MaxValues> StorageEntryMetadataBuilder for StorageNMap<Prefix, Key, Value, QueryKind, OnEmpty, MaxValues>
where Prefix: StorageInstance, Key: KeyGenerator, Value: FullCodec + StaticTypeInfo, QueryKind: QueryKindTrait<Value, OnEmpty>, OnEmpty: Get<QueryKind::Query> + 'static, MaxValues: Get<Option<u32>>,

source§

impl<Prefix, Value, QueryKind, OnEmpty> StorageEntryMetadataBuilder for StorageValue<Prefix, Value, QueryKind, OnEmpty>
where Prefix: StorageInstance, Value: FullCodec + StaticTypeInfo, QueryKind: QueryKindTrait<Value, OnEmpty>, OnEmpty: Get<QueryKind::Query> + 'static,