pub struct CurrencyTranslatorConfig {
pub method: TranslationMethod,
pub group_currency: String,
pub account_type_map: HashMap<String, TranslationAccountType>,
pub historical_rate_accounts: Vec<String>,
pub retained_earnings_account: String,
pub cta_account: String,
}Expand description
Configuration for currency translation.
Fields§
§method: TranslationMethodTranslation method to use.
group_currency: StringGroup (reporting) currency.
account_type_map: HashMap<String, TranslationAccountType>Account type mappings (account code prefix -> translation account type).
historical_rate_accounts: Vec<String>Equity accounts that use historical rates.
retained_earnings_account: StringRetained earnings account code.
cta_account: StringCTA (Currency Translation Adjustment) account code.
Trait Implementations§
Source§impl Clone for CurrencyTranslatorConfig
impl Clone for CurrencyTranslatorConfig
Source§fn clone(&self) -> CurrencyTranslatorConfig
fn clone(&self) -> CurrencyTranslatorConfig
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 Debug for CurrencyTranslatorConfig
impl Debug for CurrencyTranslatorConfig
Auto Trait Implementations§
impl Freeze for CurrencyTranslatorConfig
impl RefUnwindSafe for CurrencyTranslatorConfig
impl Send for CurrencyTranslatorConfig
impl Sync for CurrencyTranslatorConfig
impl Unpin for CurrencyTranslatorConfig
impl UnwindSafe for CurrencyTranslatorConfig
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