pub struct BenfordConfig {
pub enabled: bool,
pub tolerance: f64,
pub exempt_sources: Vec<BenfordExemption>,
}Expand description
Benford’s Law compliance configuration.
Fields§
§enabled: boolEnable Benford’s Law compliance for amount generation
tolerance: f64Tolerance for deviation from ideal Benford distribution (0.0-1.0)
exempt_sources: Vec<BenfordExemption>Transaction sources exempt from Benford’s Law (fixed amounts)
Trait Implementations§
Source§impl Clone for BenfordConfig
impl Clone for BenfordConfig
Source§fn clone(&self) -> BenfordConfig
fn clone(&self) -> BenfordConfig
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 BenfordConfig
impl Debug for BenfordConfig
Source§impl Default for BenfordConfig
impl Default for BenfordConfig
Source§impl<'de> Deserialize<'de> for BenfordConfig
impl<'de> Deserialize<'de> for BenfordConfig
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 BenfordConfig
impl RefUnwindSafe for BenfordConfig
impl Send for BenfordConfig
impl Sync for BenfordConfig
impl Unpin for BenfordConfig
impl UnwindSafe for BenfordConfig
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