pub struct RetailTransactionGenerator {
pub avg_daily_transactions: u32,
pub return_rate: f64,
pub void_rate: f64,
pub override_rate: f64,
pub shrinkage_rate: f64,
}Expand description
Generator for retail transactions.
Fields§
§avg_daily_transactions: u32Average transactions per store per day.
return_rate: f64Return rate (0.0-1.0).
void_rate: f64Void rate (0.0-1.0).
override_rate: f64Price override rate (0.0-1.0).
shrinkage_rate: f64Shrinkage rate (0.0-1.0).
Implementations§
Source§impl RetailTransactionGenerator
impl RetailTransactionGenerator
Sourcepub fn gl_accounts() -> Vec<IndustryGlAccount>
pub fn gl_accounts() -> Vec<IndustryGlAccount>
Returns retail-specific GL accounts.
Trait Implementations§
Source§impl Clone for RetailTransactionGenerator
impl Clone for RetailTransactionGenerator
Source§fn clone(&self) -> RetailTransactionGenerator
fn clone(&self) -> RetailTransactionGenerator
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 RetailTransactionGenerator
impl Debug for RetailTransactionGenerator
Auto Trait Implementations§
impl Freeze for RetailTransactionGenerator
impl RefUnwindSafe for RetailTransactionGenerator
impl Send for RetailTransactionGenerator
impl Sync for RetailTransactionGenerator
impl Unpin for RetailTransactionGenerator
impl UnwindSafe for RetailTransactionGenerator
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