referrerpolicy=no-referrer-when-downgrade
frame_support::traits::dynamic_params

Trait AggregatedKeyValue

Source
pub trait AggregatedKeyValue: Parameter {
    type Key: Parameter + MaxEncodedLen;
    type Value: Parameter + MaxEncodedLen;

    // Required method
    fn into_parts(self) -> (Self::Key, Option<Self::Value>);
}
Expand description

The aggregated key-value type of a dynamic parameter store.

Required Associated Types§

Source

type Key: Parameter + MaxEncodedLen

The aggregated key type.

Source

type Value: Parameter + MaxEncodedLen

The aggregated value type.

Required Methods§

Source

fn into_parts(self) -> (Self::Key, Option<Self::Value>)

Split the aggregated key-value type into its parts.

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 AggregatedKeyValue for ()

Source§

type Key = ()

Source§

type Value = ()

Source§

fn into_parts(self) -> (Self::Key, Option<Self::Value>)

Implementors§