pub struct ThreeWayMatchConfig {
pub price_tolerance: Decimal,
pub quantity_tolerance: Decimal,
pub absolute_amount_tolerance: Decimal,
pub allow_over_delivery: bool,
pub max_over_delivery_pct: Decimal,
}Expand description
Configuration for three-way match validation.
Fields§
§price_tolerance: DecimalTolerance for price variance (as decimal percentage, e.g., 0.05 = 5%)
quantity_tolerance: DecimalTolerance for quantity variance (as decimal percentage, e.g., 0.02 = 2%)
absolute_amount_tolerance: DecimalAbsolute tolerance for small amounts (to handle rounding)
allow_over_delivery: boolWhether to allow over-delivery (GR quantity > PO quantity)
max_over_delivery_pct: DecimalMaximum over-delivery percentage allowed
Trait Implementations§
Source§impl Clone for ThreeWayMatchConfig
impl Clone for ThreeWayMatchConfig
Source§fn clone(&self) -> ThreeWayMatchConfig
fn clone(&self) -> ThreeWayMatchConfig
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 ThreeWayMatchConfig
impl Debug for ThreeWayMatchConfig
Source§impl Default for ThreeWayMatchConfig
impl Default for ThreeWayMatchConfig
Source§impl<'de> Deserialize<'de> for ThreeWayMatchConfig
impl<'de> Deserialize<'de> for ThreeWayMatchConfig
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 ThreeWayMatchConfig
impl RefUnwindSafe for ThreeWayMatchConfig
impl Send for ThreeWayMatchConfig
impl Sync for ThreeWayMatchConfig
impl Unpin for ThreeWayMatchConfig
impl UnwindSafe for ThreeWayMatchConfig
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