pub struct VendorGenerator { /* private fields */ }Expand description
Generator for vendor master data.
Implementations§
Source§impl VendorGenerator
impl VendorGenerator
Sourcepub fn with_config(seed: u64, config: VendorGeneratorConfig) -> Self
pub fn with_config(seed: u64, config: VendorGeneratorConfig) -> Self
Create a new vendor generator with custom configuration.
Sourcepub fn generate_vendor(
&mut self,
company_code: &str,
_effective_date: NaiveDate,
) -> Vendor
pub fn generate_vendor( &mut self, company_code: &str, _effective_date: NaiveDate, ) -> Vendor
Generate a single vendor.
Sourcepub fn generate_intercompany_vendor(
&mut self,
company_code: &str,
partner_company_code: &str,
effective_date: NaiveDate,
) -> Vendor
pub fn generate_intercompany_vendor( &mut self, company_code: &str, partner_company_code: &str, effective_date: NaiveDate, ) -> Vendor
Generate an intercompany vendor (always intercompany).
Sourcepub fn generate_vendor_pool(
&mut self,
count: usize,
company_code: &str,
effective_date: NaiveDate,
) -> VendorPool
pub fn generate_vendor_pool( &mut self, count: usize, company_code: &str, effective_date: NaiveDate, ) -> VendorPool
Generate a vendor pool with specified count.
Sourcepub fn generate_vendor_pool_with_ic(
&mut self,
count: usize,
company_code: &str,
partner_company_codes: &[String],
effective_date: NaiveDate,
) -> VendorPool
pub fn generate_vendor_pool_with_ic( &mut self, count: usize, company_code: &str, partner_company_codes: &[String], effective_date: NaiveDate, ) -> VendorPool
Generate a vendor pool with intercompany vendors.
Auto Trait Implementations§
impl Freeze for VendorGenerator
impl RefUnwindSafe for VendorGenerator
impl Send for VendorGenerator
impl Sync for VendorGenerator
impl Unpin for VendorGenerator
impl UnwindSafe for VendorGenerator
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