pub struct VendorGeneratorConfig {
pub payment_terms_distribution: Vec<(PaymentTerms, f64)>,
pub behavior_distribution: Vec<(VendorBehavior, f64)>,
pub intercompany_rate: f64,
pub default_country: String,
pub default_currency: String,
pub generate_bank_accounts: bool,
pub multiple_bank_account_rate: f64,
}Expand description
Configuration for vendor generation.
Fields§
§payment_terms_distribution: Vec<(PaymentTerms, f64)>Distribution of payment terms (terms, probability)
behavior_distribution: Vec<(VendorBehavior, f64)>Distribution of vendor behaviors (behavior, probability)
intercompany_rate: f64Probability of vendor being intercompany
default_country: StringDefault country for vendors
default_currency: StringDefault currency
generate_bank_accounts: boolGenerate bank accounts
multiple_bank_account_rate: f64Probability of vendor having multiple bank accounts
Trait Implementations§
Source§impl Clone for VendorGeneratorConfig
impl Clone for VendorGeneratorConfig
Source§fn clone(&self) -> VendorGeneratorConfig
fn clone(&self) -> VendorGeneratorConfig
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 VendorGeneratorConfig
impl Debug for VendorGeneratorConfig
Auto Trait Implementations§
impl Freeze for VendorGeneratorConfig
impl RefUnwindSafe for VendorGeneratorConfig
impl Send for VendorGeneratorConfig
impl Sync for VendorGeneratorConfig
impl Unpin for VendorGeneratorConfig
impl UnwindSafe for VendorGeneratorConfig
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