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

Trait RuntimeParameterStore

Source
pub trait RuntimeParameterStore {
    type AggregatedKeyValue: AggregatedKeyValue;

    // Required method
    fn get<KV, K>(key: K) -> Option<K::Value>
       where KV: AggregatedKeyValue,
             K: Key + Into<<KV as AggregatedKeyValue>::Key>,
             <KV as AggregatedKeyValue>::Key: IntoKey<<<Self as RuntimeParameterStore>::AggregatedKeyValue as AggregatedKeyValue>::Key>,
             <<Self as RuntimeParameterStore>::AggregatedKeyValue as AggregatedKeyValue>::Value: TryIntoKey<<KV as AggregatedKeyValue>::Value>,
             <KV as AggregatedKeyValue>::Value: TryInto<K::WrappedValue>;
}
Expand description

A dynamic parameter store across an aggregated KV type.

Required Associated Types§

Required Methods§

Source

fn get<KV, K>(key: K) -> Option<K::Value>

Get the value of a parametrized key.

Should return None if no explicit value was set instead of a default.

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.

Implementors§

impl<T: Config> RuntimeParameterStore for Pallet<T>