pub struct DocumentFlowAnomalyConfig {
pub quantity_mismatch_rate: f64,
pub price_mismatch_rate: f64,
pub maverick_buying_rate: f64,
pub unbilled_receipt_rate: f64,
pub unauthorized_payment_rate: f64,
pub duplicate_invoice_rate: f64,
pub early_invoice_rate: f64,
pub early_payment_rate: f64,
pub max_quantity_variance: f64,
pub max_price_variance: f64,
}Expand description
Configuration for document flow anomaly injection.
Fields§
§quantity_mismatch_rate: f64Probability of quantity mismatch (0.0-1.0)
price_mismatch_rate: f64Probability of price mismatch
maverick_buying_rate: f64Probability of invoice without PO
unbilled_receipt_rate: f64Probability of GR without invoice
Probability of payment without invoice
duplicate_invoice_rate: f64Probability of duplicate invoice
early_invoice_rate: f64Probability of invoice before receipt
early_payment_rate: f64Probability of early payment
max_quantity_variance: f64Maximum quantity variance percentage (e.g., 0.2 = 20%)
max_price_variance: f64Maximum price variance percentage
Trait Implementations§
Source§impl Clone for DocumentFlowAnomalyConfig
impl Clone for DocumentFlowAnomalyConfig
Source§fn clone(&self) -> DocumentFlowAnomalyConfig
fn clone(&self) -> DocumentFlowAnomalyConfig
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 DocumentFlowAnomalyConfig
impl Debug for DocumentFlowAnomalyConfig
Source§impl Default for DocumentFlowAnomalyConfig
impl Default for DocumentFlowAnomalyConfig
Source§impl<'de> Deserialize<'de> for DocumentFlowAnomalyConfig
impl<'de> Deserialize<'de> for DocumentFlowAnomalyConfig
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 DocumentFlowAnomalyConfig
impl RefUnwindSafe for DocumentFlowAnomalyConfig
impl Send for DocumentFlowAnomalyConfig
impl Sync for DocumentFlowAnomalyConfig
impl Unpin for DocumentFlowAnomalyConfig
impl UnwindSafe for DocumentFlowAnomalyConfig
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