Enum frame_metadata::v14::StorageEntryType
source · [−]pub enum StorageEntryType<T: Form = MetaForm> {
Plain(T::Type),
Map {
hashers: Vec<StorageHasher>,
key: T::Type,
value: T::Type,
},
}
Expand description
A storage entry type.
Variants
Plain(T::Type)
Map
Fields
hashers: Vec<StorageHasher>
One or more hashers, should be one hasher per key element.
key: T::Type
The type of the key, can be a tuple with elements for each of the hashers.
value: T::Type
The type of the value.
Trait Implementations
type Output = StorageEntryType<PortableForm>
type Output = StorageEntryType<PortableForm>
The portable version of Self
.
Convert self
to the portable form by using the registry for caching.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<T> RefUnwindSafe for StorageEntryType<T> where
<T as Form>::Type: RefUnwindSafe,
impl<T> Send for StorageEntryType<T> where
<T as Form>::Type: Send,
impl<T> Sync for StorageEntryType<T> where
<T as Form>::Type: Sync,
impl<T> Unpin for StorageEntryType<T> where
<T as Form>::Type: Unpin,
impl<T> UnwindSafe for StorageEntryType<T> where
<T as Form>::Type: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more