referrerpolicy=no-referrer-when-downgrade

Trait 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

Used to combine data from multiple providers.

Required Methods§

Source

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

Combine data provided by operators

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§

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>,