Struct substrate_api_client::node_metadata::Metadata [−][src]
pub struct Metadata { /* fields omitted */ }
Implementations
pub fn module_with_calls<S>(
&self,
name: S
) -> Result<&ModuleWithCalls, MetadataError> where
S: ToString,
pub fn module_with_events_by_name<S>(
&self,
name: S
) -> Result<&ModuleWithEvents, MetadataError> where
S: ToString,
pub fn module_with_events(
&self,
module_index: u8
) -> Result<&ModuleWithEvents, MetadataError>
pub fn storage_value_key(
&self,
storage_prefix: &'static str,
storage_key_name: &'static str
) -> Result<StorageKey, MetadataError>
pub fn storage_map_key<K: Encode, V: Decode + Clone>(
&self,
storage_prefix: &'static str,
storage_key_name: &'static str,
map_key: K
) -> Result<StorageKey, MetadataError>
pub fn storage_map_key_prefix(
&self,
storage_prefix: &'static str,
storage_key_name: &'static str
) -> Result<StorageKey, MetadataError>
pub fn storage_double_map_key<K: Encode, Q: Encode, V: Decode + Clone>(
&self,
storage_prefix: &'static str,
storage_key_name: &'static str,
first: K,
second: Q
) -> Result<StorageKey, MetadataError>
Trait Implementations
type Error = MetadataError
type Error = MetadataError
The type returned in the event of a conversion error.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for Metadata
impl UnwindSafe for Metadata
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
fn saturated_from<T>(t: T) -> Self where
Self: UniqueSaturatedFrom<T>,
fn saturated_from<T>(t: T) -> Self where
Self: UniqueSaturatedFrom<T>,
Convert from a value of T
into an equivalent instance of Self
. Read more
fn saturated_into<T>(self) -> T where
Self: UniqueSaturatedInto<T>,
fn saturated_into<T>(self) -> T where
Self: UniqueSaturatedInto<T>,
Consume self to return an equivalent value of T
. Read more
The counterpart to unchecked_from
.
pub fn unique_saturated_into(self) -> T
pub fn unique_saturated_into(self) -> T
Consume self to return an equivalent value of T
.
pub fn vzip(self) -> V
impl<T> MaybeDebug for T where
T: Debug,
impl<T> MaybeDebug for T where
T: Debug,
impl<T> MaybeRefUnwindSafe for T where
T: RefUnwindSafe,