pub struct TranslatedAmount {
pub local_amount: Decimal,
pub local_currency: String,
pub group_amount: Decimal,
pub group_currency: String,
pub rate_used: Decimal,
pub rate_type: RateType,
pub translation_date: NaiveDate,
}Expand description
Result of translating an amount.
Fields§
§local_amount: DecimalOriginal amount in local currency.
local_currency: StringLocal currency code.
group_amount: DecimalTranslated amount in group currency.
group_currency: StringGroup currency code.
rate_used: DecimalRate used for translation.
rate_type: RateTypeRate type used.
translation_date: NaiveDateTranslation date.
Trait Implementations§
Source§impl Clone for TranslatedAmount
impl Clone for TranslatedAmount
Source§fn clone(&self) -> TranslatedAmount
fn clone(&self) -> TranslatedAmount
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 moreAuto Trait Implementations§
impl Freeze for TranslatedAmount
impl RefUnwindSafe for TranslatedAmount
impl Send for TranslatedAmount
impl Sync for TranslatedAmount
impl Unpin for TranslatedAmount
impl UnwindSafe for TranslatedAmount
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