pub struct ElemExchangeRate { /* private fields */ }
Implementations
impl ElemExchangeRate
impl ElemExchangeRate
The exchange rate element implementation.
pub fn new(
from_code_param: &str,
to_code_param: &str,
exchange_rate_param: Decimal
) -> ElemExchangeRate
pub fn new(
from_code_param: &str,
to_code_param: &str,
exchange_rate_param: Decimal
) -> ElemExchangeRate
pub fn exchange_rate(&self) -> Decimal
pub fn exchange_rate(&self) -> Decimal
pub fn set_from_code(&mut self, from_code: &str)
pub fn set_from_code(&mut self, from_code: &str)
pub fn set_to_code(&mut self, to_code: &str)
pub fn set_to_code(&mut self, to_code: &str)
pub fn set_exchange_rate(&mut self, exchange_rate_param: Decimal)
pub fn set_exchange_rate(&mut self, exchange_rate_param: Decimal)
Auto Trait Implementations
impl RefUnwindSafe for ElemExchangeRate
impl Send for ElemExchangeRate
impl Sync for ElemExchangeRate
impl Unpin for ElemExchangeRate
impl UnwindSafe for ElemExchangeRate
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more