pub struct AmountFormatVariationConfig {
pub enabled: bool,
pub rate: f64,
pub us_comma_format: bool,
pub eu_format: bool,
pub currency_prefix: bool,
pub accounting_format: bool,
}Expand description
Amount format variation configuration.
Fields§
§enabled: boolEnable amount format variations
rate: f64Overall variation rate
us_comma_format: boolInclude US comma format (1,234.56)
eu_format: boolInclude EU format (1.234,56)
currency_prefix: boolInclude currency prefix ($1,234.56)
accounting_format: boolInclude accounting format with parentheses for negatives
Trait Implementations§
Source§impl Clone for AmountFormatVariationConfig
impl Clone for AmountFormatVariationConfig
Source§fn clone(&self) -> AmountFormatVariationConfig
fn clone(&self) -> AmountFormatVariationConfig
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 AmountFormatVariationConfig
impl Debug for AmountFormatVariationConfig
Source§impl<'de> Deserialize<'de> for AmountFormatVariationConfig
impl<'de> Deserialize<'de> for AmountFormatVariationConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AmountFormatVariationConfig
impl RefUnwindSafe for AmountFormatVariationConfig
impl Send for AmountFormatVariationConfig
impl Sync for AmountFormatVariationConfig
impl Unpin for AmountFormatVariationConfig
impl UnwindSafe for AmountFormatVariationConfig
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