pub enum MatchStatus {
Matching,
Divergent,
Missing,
}Expand description
The MatchStatus enum delineates whether a given address has a match (the Matching variant),
has a match but differs in some descriptive fields (the Divergent variant), or does not have
a match in the comparison set (the Missing variant).
We have derived Default using the Missing variant, mostly so structs that take a MatchStatus
as a field can also derive default. Properly speaking, there is no meaningful default for this
struct, but if you need to create one first and fill it in later, you can.
Variants§
Matching
The Matching variant indicates an address has an exact match in the comparison set.
Divergent
The Divergent variant indicates an address has a match in the comparison set, but
the address contains fields with different values than in the comparison (e.g. the
address has status ‘Retired’ compared to ‘Current’).
Missing
The Missing variant indicates the address does not have a match in the comparison set.
Trait Implementations§
Source§impl Clone for MatchStatus
impl Clone for MatchStatus
Source§fn clone(&self) -> MatchStatus
fn clone(&self) -> MatchStatus
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MatchStatus
impl Debug for MatchStatus
Source§impl Default for MatchStatus
impl Default for MatchStatus
Source§fn default() -> MatchStatus
fn default() -> MatchStatus
Source§impl<'de> Deserialize<'de> for MatchStatus
impl<'de> Deserialize<'de> for MatchStatus
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>,
Source§impl Hash for MatchStatus
impl Hash for MatchStatus
Source§impl Ord for MatchStatus
impl Ord for MatchStatus
Source§fn cmp(&self, other: &MatchStatus) -> Ordering
fn cmp(&self, other: &MatchStatus) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for MatchStatus
impl PartialEq for MatchStatus
Source§impl PartialOrd for MatchStatus
impl PartialOrd for MatchStatus
Source§impl Serialize for MatchStatus
impl Serialize for MatchStatus
impl Eq for MatchStatus
impl StructuralPartialEq for MatchStatus
Auto Trait Implementations§
impl Freeze for MatchStatus
impl RefUnwindSafe for MatchStatus
impl Send for MatchStatus
impl Sync for MatchStatus
impl Unpin for MatchStatus
impl UnwindSafe for MatchStatus
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more