[][src]Trait interledger_service_util::ExchangeRateStore

pub trait ExchangeRateStore: Clone {
    fn set_exchange_rates(&self, rates: HashMap<String, f64>) -> Result<(), ()>;
fn get_exchange_rates(&self, asset_codes: &[&str]) -> Result<Vec<f64>, ()>;
fn get_all_exchange_rates(&self) -> Result<HashMap<String, f64>, ()>; }

Required methods

fn set_exchange_rates(&self, rates: HashMap<String, f64>) -> Result<(), ()>

fn get_exchange_rates(&self, asset_codes: &[&str]) -> Result<Vec<f64>, ()>

fn get_all_exchange_rates(&self) -> Result<HashMap<String, f64>, ()>

Loading content...

Implementors

Loading content...