StorageEntryInfo

Trait StorageEntryInfo 

Source
pub trait StorageEntryInfo {
    // Required method
    fn storage_entries(&self) -> impl Iterator<Item = StorageEntry<'_>>;

    // Provided methods
    fn storage_tuples(
        &self,
    ) -> impl Iterator<Item = (Cow<'_, str>, Cow<'_, str>)> { ... }
    fn storage_in_pallet(
        &self,
        pallet: &str,
    ) -> impl Iterator<Item = Cow<'_, str>> { ... }
}
Expand description

This can be implemented for anything capable of providing information about the available Storage Entries

Required Methods§

Source

fn storage_entries(&self) -> impl Iterator<Item = StorageEntry<'_>>

Iterate over all of the available Storage Entries, returning Entry as we go.

Provided Methods§

Source

fn storage_tuples(&self) -> impl Iterator<Item = (Cow<'_, str>, Cow<'_, str>)>

Iterate over all of the available Storage Entries, returning a pair of (pallet_name, constant_name) as we go.

Source

fn storage_in_pallet(&self, pallet: &str) -> impl Iterator<Item = Cow<'_, str>>

Iterate over all of the available Storage Entries in a given pallet.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl StorageEntryInfo for RuntimeMetadataV8

Source§

fn storage_entries(&self) -> impl Iterator<Item = StorageEntry<'_>>

Source§

fn storage_in_pallet( &self, pallet_name: &str, ) -> impl Iterator<Item = Cow<'_, str>>

Source§

impl StorageEntryInfo for RuntimeMetadataV9

Source§

fn storage_entries(&self) -> impl Iterator<Item = StorageEntry<'_>>

Source§

fn storage_in_pallet( &self, pallet_name: &str, ) -> impl Iterator<Item = Cow<'_, str>>

Source§

impl StorageEntryInfo for RuntimeMetadataV10

Source§

fn storage_entries(&self) -> impl Iterator<Item = StorageEntry<'_>>

Source§

fn storage_in_pallet( &self, pallet_name: &str, ) -> impl Iterator<Item = Cow<'_, str>>

Source§

impl StorageEntryInfo for RuntimeMetadataV11

Source§

fn storage_entries(&self) -> impl Iterator<Item = StorageEntry<'_>>

Source§

fn storage_in_pallet( &self, pallet_name: &str, ) -> impl Iterator<Item = Cow<'_, str>>

Source§

impl StorageEntryInfo for RuntimeMetadataV12

Source§

fn storage_entries(&self) -> impl Iterator<Item = StorageEntry<'_>>

Source§

fn storage_in_pallet( &self, pallet_name: &str, ) -> impl Iterator<Item = Cow<'_, str>>

Source§

impl StorageEntryInfo for RuntimeMetadataV13

Source§

fn storage_entries(&self) -> impl Iterator<Item = StorageEntry<'_>>

Source§

fn storage_in_pallet( &self, pallet_name: &str, ) -> impl Iterator<Item = Cow<'_, str>>

Source§

impl StorageEntryInfo for RuntimeMetadataV14

Source§

fn storage_entries(&self) -> impl Iterator<Item = StorageEntry<'_>>

Source§

fn storage_in_pallet( &self, pallet_name: &str, ) -> impl Iterator<Item = Cow<'_, str>>

Source§

impl StorageEntryInfo for RuntimeMetadataV15

Source§

fn storage_entries(&self) -> impl Iterator<Item = StorageEntry<'_>>

Source§

fn storage_in_pallet( &self, pallet_name: &str, ) -> impl Iterator<Item = Cow<'_, str>>

Source§

impl StorageEntryInfo for RuntimeMetadataV16

Source§

fn storage_entries(&self) -> impl Iterator<Item = StorageEntry<'_>>

Source§

fn storage_in_pallet( &self, pallet_name: &str, ) -> impl Iterator<Item = Cow<'_, str>>

Implementors§