Trait ExchangeRate
coins_rs::traits
pub trait ExchangeRate { fn exchange_rate(self, from: Currency, to: Currency) -> Result<f64, Error>; }
fn exchange_rate(self, from: Currency, to: Currency) -> Result<f64, Error>
impl ExchangeRate for EuropeanCentralBank