pub struct FireInspectionMatch { /* private fields */ }Expand description
The FireInspectionmatch struct holds a FireInspection in the inspection field, and a
MatchPartialRecord in the record field. The record matches the partial business
address against a set of fully-specified addresses.
Implementations§
Source§impl FireInspectionMatch
impl FireInspectionMatch
Sourcepub fn compare<T: Address + Geographic>(
inspection: &FireInspection,
addresses: &[T],
) -> Self
pub fn compare<T: Address + Geographic>( inspection: &FireInspection, addresses: &[T], ) -> Self
The compare method wraps MatchPartialRecord::compare, taking the business address
from the fire inspection and comparing it against a set of fully-specified addresses.
Sourcepub fn inspection(&self) -> FireInspection
pub fn inspection(&self) -> FireInspection
The inspection method returns the cloned value of the inspection field, which contains
the fire inspection record.
Sourcepub fn record(&self) -> MatchPartialRecords
pub fn record(&self) -> MatchPartialRecords
The record method returns the cloned value of the record field, which contains the
address match record for the provided business address.
Trait Implementations§
Source§impl Clone for FireInspectionMatch
impl Clone for FireInspectionMatch
Source§fn clone(&self) -> FireInspectionMatch
fn clone(&self) -> FireInspectionMatch
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 FireInspectionMatch
impl Debug for FireInspectionMatch
Source§impl<'de> Deserialize<'de> for FireInspectionMatch
impl<'de> Deserialize<'de> for FireInspectionMatch
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 From<&FireInspectionMatch> for FireInspectionMatchRecords
impl From<&FireInspectionMatch> for FireInspectionMatchRecords
Source§fn from(inspection: &FireInspectionMatch) -> Self
fn from(inspection: &FireInspectionMatch) -> Self
Converts to this type from the input type.
Source§impl PartialEq for FireInspectionMatch
impl PartialEq for FireInspectionMatch
Source§impl PartialOrd for FireInspectionMatch
impl PartialOrd for FireInspectionMatch
Source§impl Serialize for FireInspectionMatch
impl Serialize for FireInspectionMatch
impl StructuralPartialEq for FireInspectionMatch
Auto Trait Implementations§
impl Freeze for FireInspectionMatch
impl RefUnwindSafe for FireInspectionMatch
impl Send for FireInspectionMatch
impl Sync for FireInspectionMatch
impl Unpin for FireInspectionMatch
impl UnwindSafe for FireInspectionMatch
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