pub struct BusinessLicense { /* private fields */ }Expand description
The BusinessLicense struct is designed to deserialize CSV data produced by querying the
EnerGov SQL database for active business licenses. If the structure of the SQL query changes,
this function will need to change to match the resulting fields in the CSV.
Implementations§
Source§impl BusinessLicense
impl BusinessLicense
Sourcepub fn coincident<T: Address + Geographic>(
&self,
address: &T,
) -> Option<BusinessMatchRecord>
pub fn coincident<T: Address + Geographic>( &self, address: &T, ) -> Option<BusinessMatchRecord>
Compares the address of BusinessLicense to address, producing either a matching
BusinessMatchRecord, any divergent BusinessMatchRecord, or None if missing.
Sourcepub fn community(&self) -> String
pub fn community(&self) -> String
The community method returns the postal community name from the postal_community field.
Sourcepub fn company_name(&self) -> Option<String>
pub fn company_name(&self) -> Option<String>
The company_name field represents the registered name of the business. This method
returns the cloned value of the field.
Sourcepub fn contact_name(&self) -> Option<String>
pub fn contact_name(&self) -> Option<String>
The contact_name field represents the business owner name. This method clones the
value of the field.
Sourcepub fn business_type(&self) -> String
pub fn business_type(&self) -> String
The business_type field represents the tax classification associated with a business
license. This method clones the value of the field.
Sourcepub fn dba(&self) -> Option<String>
pub fn dba(&self) -> Option<String>
The dba field represents the alias name associated with a business license. This method
clones the value of the field.
Sourcepub fn license(&self) -> String
pub fn license(&self) -> String
The license field represents the license ID associated with the business. This method
clones the value of the field.
Sourcepub fn expires(&self) -> String
pub fn expires(&self) -> String
The expires field represents the time of expiration for the active business license.
This method clones the value of the field.
Sourcepub fn industry_code(&self) -> i64
pub fn industry_code(&self) -> i64
The industry_code method returns the value of the industry_code field.
Sourcepub fn pre_directional(&self) -> Option<StreetNamePreDirectional>
pub fn pre_directional(&self) -> Option<StreetNamePreDirectional>
The pre_directional field represents the street pre-directional designation associated
with a business license. This method clones the value of the field.
Sourcepub fn post_type(&self) -> Option<StreetNamePostType>
pub fn post_type(&self) -> Option<StreetNamePostType>
The post_type field represents the street post type designation of the business address.
This method returns the cloned value of the field.
Sourcepub fn subaddress_identifier(&self) -> Option<String>
pub fn subaddress_identifier(&self) -> Option<String>
The subaddress_identifier field represents the subaddress unit identifier associated with
a business address. This method clones the value of the field.
Sourcepub fn detype_subaddress(&mut self) -> Result<(), Nom>
pub fn detype_subaddress(&mut self) -> Result<(), Nom>
EnerGov has a single field for entering a subaddress id, and staff sometimes include the subaddress type. This method strips the type information from the id, so we can compare the id to addresses in the city.
Trait Implementations§
Source§impl Clone for BusinessLicense
impl Clone for BusinessLicense
Source§fn clone(&self) -> BusinessLicense
fn clone(&self) -> BusinessLicense
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BusinessLicense
impl Debug for BusinessLicense
Source§impl<'de> Deserialize<'de> for BusinessLicense
impl<'de> Deserialize<'de> for BusinessLicense
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>,
Auto Trait Implementations§
impl Freeze for BusinessLicense
impl RefUnwindSafe for BusinessLicense
impl Send for BusinessLicense
impl Sync for BusinessLicense
impl Unpin for BusinessLicense
impl UnwindSafe for BusinessLicense
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