pub struct MatchPartialRecord { /* private fields */ }Expand description
The MatchPartialRecord struct contains match data for a PartialAddress.
Implementations§
Source§impl MatchPartialRecord
impl MatchPartialRecord
Sourcepub fn coincident<T: Address + Geographic>(
partial: &PartialAddress,
address: &T,
) -> Option<MatchPartialRecord>
pub fn coincident<T: Address + Geographic>( partial: &PartialAddress, address: &T, ) -> Option<MatchPartialRecord>
The coincident method attempts to match fields present in the partial address against the
comparison address, returning a MatchPartialRecord if successful. Returns None if
the match status is “missing”.
Sourcepub fn compare<T: Address + Geographic>(
partial: &PartialAddress,
addresses: &[T],
) -> MatchPartialRecords
pub fn compare<T: Address + Geographic>( partial: &PartialAddress, addresses: &[T], ) -> MatchPartialRecords
The compare method attempts to match fields present in the partial address against a set
of comparison addresses, returning a MatchPartialRecords.
Sourcepub fn match_status(&self) -> MatchStatus
pub fn match_status(&self) -> MatchStatus
The match_status method returns the cloned value of the match_status field.
Sourcepub fn address_label(&self) -> String
pub fn address_label(&self) -> String
The address_label method returns the cloned value of the address_label field.
Sourcepub fn other_label(&self) -> Option<String>
pub fn other_label(&self) -> Option<String>
The other_label method returns the cloned value of the other_label field.
Trait Implementations§
Source§impl Clone for MatchPartialRecord
impl Clone for MatchPartialRecord
Source§fn clone(&self) -> MatchPartialRecord
fn clone(&self) -> MatchPartialRecord
Returns a copy 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 MatchPartialRecord
impl Debug for MatchPartialRecord
Source§impl<'de> Deserialize<'de> for MatchPartialRecord
impl<'de> Deserialize<'de> for MatchPartialRecord
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
Source§impl PartialEq for MatchPartialRecord
impl PartialEq for MatchPartialRecord
Source§impl PartialOrd for MatchPartialRecord
impl PartialOrd for MatchPartialRecord
Source§impl Serialize for MatchPartialRecord
impl Serialize for MatchPartialRecord
impl StructuralPartialEq for MatchPartialRecord
Auto Trait Implementations§
impl Freeze for MatchPartialRecord
impl RefUnwindSafe for MatchPartialRecord
impl Send for MatchPartialRecord
impl Sync for MatchPartialRecord
impl Unpin for MatchPartialRecord
impl UnwindSafe for MatchPartialRecord
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<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>
Converts
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>
Converts
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