pub enum MatchReason {
Matched,
FieldAbsent,
ValueMismatch,
CaseMismatch,
Existence,
NoKeywordMatch,
}Expand description
Why a single leaf matched or did not.
Variants§
Matched
The leaf matched.
FieldAbsent
The field is not present in the event.
ValueMismatch
The field is present but the value does not satisfy the matcher.
CaseMismatch
The field is present and matches except for letter case.
Existence
An existence assertion (|exists) was not satisfied.
NoKeywordMatch
A keyword item found no matching string anywhere in the event.
Trait Implementations§
Source§impl Clone for MatchReason
impl Clone for MatchReason
Source§fn clone(&self) -> MatchReason
fn clone(&self) -> MatchReason
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MatchReason
Source§impl Debug for MatchReason
impl Debug for MatchReason
impl Eq for MatchReason
Source§impl PartialEq for MatchReason
impl PartialEq for MatchReason
Source§fn eq(&self, other: &MatchReason) -> bool
fn eq(&self, other: &MatchReason) -> bool
Tests for
self and other values to be equal, and is used by ==.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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.