1use crate::currency::CurrencyUnit; 2use rust_decimal::Decimal; 3 4pub mod live; 5 6pub use live::LiveExchangeProvider; 7 8pub trait ExchangeRateProvider { 9 fn get_rate(&self, from: CurrencyUnit, to: CurrencyUnit) -> Result<Decimal, String>; 10}