ExchangeRateProvider

Trait ExchangeRateProvider 

Source
pub trait ExchangeRateProvider {
    // Required method
    fn get_rate(
        &self,
        from: CurrencyUnit,
        to: CurrencyUnit,
    ) -> Result<Decimal, String>;
}

Required Methods§

Implementors§