pub enum MatchReason {
Matched,
TriggerDisabled,
CollectionMismatch,
ChangeKindMismatch,
ChangeValueAbsent,
PredicateFieldAbsent,
PredicateValueMismatch,
}Expand description
Why the decision came out the way it did.
The reason is part of the contract, not a diagnostic afterthought: it fixes
the order in which the checks are applied, so two implementations cannot
agree on matched by accident while disagreeing about the semantics.
Variants§
Matched
Every check passed.
TriggerDisabled
The trigger is disabled.
CollectionMismatch
The change’s collection is not the trigger’s source collection.
ChangeKindMismatch
The change kind is not the trigger’s change kind.
ChangeValueAbsent
A predicate is declared but the change carried no value.
PredicateFieldAbsent
The predicate’s field path does not resolve in the change value.
PredicateValueMismatch
The predicate’s field resolved to a value that is not equals.
Trait Implementations§
Source§impl Clone for MatchReason
impl Clone for MatchReason
impl Copy for MatchReason
Source§impl Debug for MatchReason
impl Debug for MatchReason
Source§impl<'de> Deserialize<'de> for MatchReason
impl<'de> Deserialize<'de> for MatchReason
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
impl Eq for MatchReason
Source§impl PartialEq for MatchReason
impl PartialEq for MatchReason
Source§impl Serialize for MatchReason
impl Serialize for MatchReason
impl StructuralPartialEq for MatchReason
Auto Trait Implementations§
impl Freeze for MatchReason
impl RefUnwindSafe for MatchReason
impl Send for MatchReason
impl Sync for MatchReason
impl Unpin for MatchReason
impl UnsafeUnpin for MatchReason
impl UnwindSafe for MatchReason
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