pub enum Mismatch {
SubaddressType(String),
Floor(String),
Building(String),
Status(String),
}Expand description
The Mismatch enum tracks the fields of an address that can diverge while still potentially
referring to the same location.
Variants§
SubaddressType(String)
Represents a mismatch in the subaddress type.
Floor(String)
Represents a mismatch in the floor number.
Building(String)
Represents a mismatch in the building identifier.
Status(String)
Represents a mismatch in the address status.
Implementations§
Source§impl Mismatch
impl Mismatch
Sourcepub fn subaddress_type(
from: Option<SubaddressType>,
to: Option<SubaddressType>,
) -> Self
pub fn subaddress_type( from: Option<SubaddressType>, to: Option<SubaddressType>, ) -> Self
The subaddress_type method captures information about the mismatch between subaddress
type fields as a message contained in the enum variant.
Sourcepub fn floor(from: Option<i64>, to: Option<i64>) -> Self
pub fn floor(from: Option<i64>, to: Option<i64>) -> Self
The floor method captures information about the mismatch between the floor fields as a message contained in the enum variant.
Sourcepub fn building(from: Option<String>, to: Option<String>) -> Self
pub fn building(from: Option<String>, to: Option<String>) -> Self
The building method captures information about the mismatch between the building fields as a message contained in the enum variant.
Sourcepub fn status(from: AddressStatus, to: AddressStatus) -> Self
pub fn status(from: AddressStatus, to: AddressStatus) -> Self
The status method captures information about the mismatch between the status fields as a message contained in the enum variant.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Mismatch
impl<'de> Deserialize<'de> for Mismatch
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 Ord for Mismatch
impl Ord for Mismatch
Source§impl PartialOrd for Mismatch
impl PartialOrd for Mismatch
impl Eq for Mismatch
impl StructuralPartialEq for Mismatch
Auto Trait Implementations§
impl Freeze for Mismatch
impl RefUnwindSafe for Mismatch
impl Send for Mismatch
impl Sync for Mismatch
impl Unpin for Mismatch
impl UnwindSafe for Mismatch
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