pub struct ChartOfAccountsGenerator { /* private fields */ }Expand description
Generator for Chart of Accounts.
Implementations§
Source§impl ChartOfAccountsGenerator
impl ChartOfAccountsGenerator
Sourcepub fn new(
complexity: CoAComplexity,
industry: IndustrySector,
seed: u64,
) -> Self
pub fn new( complexity: CoAComplexity, industry: IndustrySector, seed: u64, ) -> Self
Create a new CoA generator.
Sourcepub fn generate(&mut self) -> ChartOfAccounts
pub fn generate(&mut self) -> ChartOfAccounts
Generate a complete chart of accounts.
Trait Implementations§
Source§impl Generator for ChartOfAccountsGenerator
impl Generator for ChartOfAccountsGenerator
Source§type Item = ChartOfAccounts
type Item = ChartOfAccounts
The type of items this generator produces.
Source§type Config = (CoAComplexity, IndustrySector)
type Config = (CoAComplexity, IndustrySector)
The configuration type for this generator.
Source§fn new(config: Self::Config, seed: u64) -> Self
fn new(config: Self::Config, seed: u64) -> Self
Initialize the generator with configuration and seed. Read more
Source§fn generate_one(&mut self) -> Self::Item
fn generate_one(&mut self) -> Self::Item
Generate a single item.
Source§fn generate_batch(&mut self, count: usize) -> Vec<Self::Item>
fn generate_batch(&mut self, count: usize) -> Vec<Self::Item>
Generate a batch of items. Read more
Source§fn generate_iter(&mut self, count: usize) -> GeneratorIterator<'_, Self>where
Self: Sized,
fn generate_iter(&mut self, count: usize) -> GeneratorIterator<'_, Self>where
Self: Sized,
Generate items into an iterator. Read more
Auto Trait Implementations§
impl Freeze for ChartOfAccountsGenerator
impl RefUnwindSafe for ChartOfAccountsGenerator
impl Send for ChartOfAccountsGenerator
impl Sync for ChartOfAccountsGenerator
impl Unpin for ChartOfAccountsGenerator
impl UnwindSafe for ChartOfAccountsGenerator
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