pub struct ThreeWayMatchResult {
pub passed: bool,
pub quantity_matched: bool,
pub price_matched: bool,
pub amount_matched: bool,
pub variances: Vec<MatchVariance>,
pub message: String,
}Expand description
Result of three-way match validation.
Fields§
§passed: boolOverall match status
quantity_matched: boolQuantity match status
price_matched: boolPrice match status
amount_matched: boolTotal amount match status
variances: Vec<MatchVariance>List of variances found
message: StringSummary message
Implementations§
Source§impl ThreeWayMatchResult
impl ThreeWayMatchResult
Sourcepub fn with_variance(self, variance: MatchVariance) -> Self
pub fn with_variance(self, variance: MatchVariance) -> Self
Add a variance to the result.
Trait Implementations§
Source§impl Clone for ThreeWayMatchResult
impl Clone for ThreeWayMatchResult
Source§fn clone(&self) -> ThreeWayMatchResult
fn clone(&self) -> ThreeWayMatchResult
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 ThreeWayMatchResult
impl Debug for ThreeWayMatchResult
Source§impl<'de> Deserialize<'de> for ThreeWayMatchResult
impl<'de> Deserialize<'de> for ThreeWayMatchResult
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 ThreeWayMatchResult
impl RefUnwindSafe for ThreeWayMatchResult
impl Send for ThreeWayMatchResult
impl Sync for ThreeWayMatchResult
impl Unpin for ThreeWayMatchResult
impl UnwindSafe for ThreeWayMatchResult
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