pub struct ThreeWayMatcher { /* private fields */ }Expand description
Three-way match validator.
Implementations§
Source§impl ThreeWayMatcher
impl ThreeWayMatcher
Sourcepub fn with_config(config: ThreeWayMatchConfig) -> Self
pub fn with_config(config: ThreeWayMatchConfig) -> Self
Create a three-way matcher with custom configuration.
Sourcepub fn validate(
&self,
po: &PurchaseOrder,
grs: &[&GoodsReceipt],
invoice: &VendorInvoice,
) -> ThreeWayMatchResult
pub fn validate( &self, po: &PurchaseOrder, grs: &[&GoodsReceipt], invoice: &VendorInvoice, ) -> ThreeWayMatchResult
Sourcepub fn check_quantities(
&self,
po: &PurchaseOrder,
grs: &[&GoodsReceipt],
) -> bool
pub fn check_quantities( &self, po: &PurchaseOrder, grs: &[&GoodsReceipt], ) -> bool
Quick check if quantities match between PO and GRs.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ThreeWayMatcher
impl RefUnwindSafe for ThreeWayMatcher
impl Send for ThreeWayMatcher
impl Sync for ThreeWayMatcher
impl Unpin for ThreeWayMatcher
impl UnwindSafe for ThreeWayMatcher
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