pub struct LiveExchangeProvider { /* private fields */ }Expand description
Provider that fetches live FX rates using the European Central Bank daily feed.
Implementations§
Trait Implementations§
Source§impl Clone for LiveExchangeProvider
impl Clone for LiveExchangeProvider
Source§fn clone(&self) -> LiveExchangeProvider
fn clone(&self) -> LiveExchangeProvider
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ExchangeRateProvider for LiveExchangeProvider
impl ExchangeRateProvider for LiveExchangeProvider
fn get_rate( &self, from: CurrencyUnit, to: CurrencyUnit, ) -> Result<Decimal, String>
Auto Trait Implementations§
impl Freeze for LiveExchangeProvider
impl !RefUnwindSafe for LiveExchangeProvider
impl Send for LiveExchangeProvider
impl Sync for LiveExchangeProvider
impl Unpin for LiveExchangeProvider
impl !UnwindSafe for LiveExchangeProvider
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more