pub struct TaxCodeGenerator { /* private fields */ }Expand description
Generates tax jurisdictions and tax codes from built-in rate tables.
The generator reads TaxConfig to determine which countries to produce
jurisdictions for, whether to include sub-national jurisdictions (US states,
Canadian provinces, etc.), and whether config-provided rate overrides should
replace the built-in defaults.
§Examples
use datasynth_generators::tax::TaxCodeGenerator;
let mut gen = TaxCodeGenerator::new(42);
let (jurisdictions, codes) = gen.generate();
assert!(!jurisdictions.is_empty());
assert!(!codes.is_empty());Implementations§
Source§impl TaxCodeGenerator
impl TaxCodeGenerator
Auto Trait Implementations§
impl Freeze for TaxCodeGenerator
impl RefUnwindSafe for TaxCodeGenerator
impl Send for TaxCodeGenerator
impl Sync for TaxCodeGenerator
impl Unpin for TaxCodeGenerator
impl UnsafeUnpin for TaxCodeGenerator
impl UnwindSafe for TaxCodeGenerator
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