Trait PriceFeedStorage

Source
pub trait PriceFeedStorage {
    // Required methods
    fn insert_price_feed(&mut self, source_wrapper_id: ID, feed: PriceFeed);
    fn get_price_feed_mut(
        &mut self,
        source_wrapper_id: &ID,
    ) -> Option<&mut PriceFeed>;
    fn remove_price_feed(&mut self, source_wrapper_id: &ID) -> Option<PriceFeed>;
}
Expand description

General interface to help apply PriceFeedStorage-related events to a database.

Required Methods§

Source

fn insert_price_feed(&mut self, source_wrapper_id: ID, feed: PriceFeed)

Source

fn get_price_feed_mut( &mut self, source_wrapper_id: &ID, ) -> Option<&mut PriceFeed>

Source

fn remove_price_feed(&mut self, source_wrapper_id: &ID) -> Option<PriceFeed>

Implementors§