pub struct AccountGenerator { /* private fields */ }Expand description
Generator for bank accounts.
Implementations§
Source§impl AccountGenerator
impl AccountGenerator
Sourcepub fn new(config: BankingConfig, seed: u64) -> Self
pub fn new(config: BankingConfig, seed: u64) -> Self
Create a new account generator.
Sourcepub fn generate_for_customers(
&mut self,
customers: &mut [BankingCustomer],
) -> Vec<BankAccount>
pub fn generate_for_customers( &mut self, customers: &mut [BankingCustomer], ) -> Vec<BankAccount>
Generate accounts for all customers.
Sourcepub fn generate_customer_accounts(
&mut self,
customer: &BankingCustomer,
) -> Vec<BankAccount>
pub fn generate_customer_accounts( &mut self, customer: &BankingCustomer, ) -> Vec<BankAccount>
Generate accounts for a single customer.
Auto Trait Implementations§
impl !Freeze for AccountGenerator
impl RefUnwindSafe for AccountGenerator
impl Send for AccountGenerator
impl Sync for AccountGenerator
impl Unpin for AccountGenerator
impl UnwindSafe for AccountGenerator
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