pub struct AmountDistributionConfig {
pub min_amount: f64,
pub max_amount: f64,
pub lognormal_mu: f64,
pub lognormal_sigma: f64,
pub decimal_places: u8,
pub round_number_probability: f64,
pub nice_number_probability: f64,
}Expand description
Configuration for amount distribution.
Fields§
§min_amount: f64Minimum transaction amount
max_amount: f64Maximum transaction amount
lognormal_mu: f64Log-normal mu parameter (location)
lognormal_sigma: f64Log-normal sigma parameter (scale)
decimal_places: u8Number of decimal places to round to
round_number_probability: f64Probability of round number (ending in .00)
nice_number_probability: f64Probability of nice number (ending in 0 or 5)
Implementations§
Source§impl AmountDistributionConfig
impl AmountDistributionConfig
Sourcepub fn small_transactions() -> Self
pub fn small_transactions() -> Self
Configuration for small transactions (e.g., retail).
Sourcepub fn medium_transactions() -> Self
pub fn medium_transactions() -> Self
Configuration for medium transactions (e.g., B2B).
Sourcepub fn large_transactions() -> Self
pub fn large_transactions() -> Self
Configuration for large transactions (e.g., enterprise).
Trait Implementations§
Source§impl Clone for AmountDistributionConfig
impl Clone for AmountDistributionConfig
Source§fn clone(&self) -> AmountDistributionConfig
fn clone(&self) -> AmountDistributionConfig
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 AmountDistributionConfig
impl Debug for AmountDistributionConfig
Source§impl Default for AmountDistributionConfig
impl Default for AmountDistributionConfig
Source§impl<'de> Deserialize<'de> for AmountDistributionConfig
impl<'de> Deserialize<'de> for AmountDistributionConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AmountDistributionConfig
impl RefUnwindSafe for AmountDistributionConfig
impl Send for AmountDistributionConfig
impl Sync for AmountDistributionConfig
impl Unpin for AmountDistributionConfig
impl UnwindSafe for AmountDistributionConfig
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