[][src]Trait orml_oracle::DataProvider

pub trait DataProvider<Key, Value> {
    fn get(key: &Key) -> Option<Value>;
}

A simple trait to provide data

Required methods

fn get(key: &Key) -> Option<Value>

Get data by key

Loading content...

Implementors

impl<T: Trait<I>, I: Instance> DataProvider<<T as Trait<I>>::OracleKey, <T as Trait<I>>::OracleValue> for Module<T, I>[src]

Loading content...