[][src]Trait substrate_subxt::Store

pub trait Store<T>: Encode {
    type Returns: Decode;

    const MODULE: &'static str;
    const FIELD: &'static str;

    fn key(&self, metadata: &Metadata) -> Result<StorageKey, MetadataError>;

    fn default(
        &self,
        metadata: &Metadata
    ) -> Result<Self::Returns, MetadataError> { ... } }

Store trait.

Associated Types

type Returns: Decode

Return type.

Loading content...

Associated Constants

const MODULE: &'static str

Module name.

const FIELD: &'static str

Field name.

Loading content...

Required methods

fn key(&self, metadata: &Metadata) -> Result<StorageKey, MetadataError>

Returns the StorageKey.

Loading content...

Provided methods

fn default(&self, metadata: &Metadata) -> Result<Self::Returns, MetadataError>

Returns the default value.

Loading content...

Implementors

impl<'a, T: System> Store<T> for AccountStore<'a, T>[src]

type Returns = AccountInfo<T>

impl<T: Balances> Store<T> for TotalIssuanceStore<T>[src]

type Returns = T::Balance

Loading content...