Trait orml_oracle::CombineData

source ·
pub trait CombineData<Key, TimestampedValue> {
    // Required method
    fn combine_data(
        key: &Key,
        values: Vec<TimestampedValue>,
        prev_value: Option<TimestampedValue>
    ) -> Option<TimestampedValue>;
}
Expand description

Combine data provided by operators

Required Methods§

source

fn combine_data( key: &Key, values: Vec<TimestampedValue>, prev_value: Option<TimestampedValue> ) -> Option<TimestampedValue>

Combine data provided by operators

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T, I, MinimumCount, ExpiresIn> CombineData<<T as Config<I>>::OracleKey, TimestampedValue<<T as Config<I>>::OracleValue, <<T as Config<I>>::Time as Time>::Moment>> for DefaultCombineData<T, MinimumCount, ExpiresIn, I>
where T: Config<I>, I: 'static, MinimumCount: Get<u32>, ExpiresIn: Get<<<T as Config<I>>::Time as Time>::Moment>,