pub struct JosephineCountySpatialAddress {Show 21 fields
pub taxlot: Option<String>,
pub address_number: i64,
pub address_number_suffix: Option<String>,
pub street_name_pre_directional: Option<StreetNamePreDirectional>,
pub street_name: String,
pub street_name_post_type: Option<StreetNamePostType>,
pub subaddress_type: Option<SubaddressType>,
pub subaddress_identifier: Option<String>,
pub floor: Option<i64>,
pub complete_street_address: String,
pub postal_community: String,
pub zip_code: i64,
pub state_name: State,
pub status: AddressStatus,
pub x: f64,
pub y: f64,
pub lat: f64,
pub lon: f64,
pub street_name_pre_modifier: Option<StreetNamePreModifier>,
pub street_name_pre_type: Option<StreetNamePreType>,
pub street_separator: Option<StreetSeparator>,
}Expand description
The JosephineCountySpatialAddress struct represents an address site point for Josephine County that includes geographic and projected coordinate information,
prior to the schema adopted by the agency in April of 2024.
Fields§
§taxlot: Option<String>The taxlot field represents the map tax lot number of the parcel on which the address
is located.
address_number: i64The address_number field represents the address number component of the complete address
number.
address_number_suffix: Option<String>The address_number_suffix field represents the address number suffix component of the complete
address number.
street_name_pre_directional: Option<StreetNamePreDirectional>The street_name_pre_directional field represents the street name pre directional component of the
complete street name.
street_name: StringThe street_name field represents the street name component of the complete street name.
street_name_post_type: Option<StreetNamePostType>The street_name_post_type field represents the street name post type component of the complete street
name.
subaddress_type: Option<SubaddressType>The subaddress_type field represents the subaddress type component of the complete
subaddress.
subaddress_identifier: Option<String>The subaddress_identifier field represents the subaddress identifier component of the complete
subaddress.
floor: Option<i64>The floor field represents the floor identifier, corresponding to the Floor field from the NENA standard.
complete_street_address: StringThe complete_street_address field represents the full street address as a string.
postal_community: StringThe postal_community field represents the postal community component of the address,
being either the unincorporated or incorporated municipality name.
zip_code: i64The zip_code field represents the postal zip code of the address.
state_name: StateThe state_name field represents the state name component of the address.
status: AddressStatusThe status field represents the local status of the address as determined by the relevant
addressing authority.
x: f64The x field represents the cartesian X portion of the projected coordinates of the
address.
y: f64The y field represents the cartesian Y portion of the projected coordinates of the
address.
lat: f64The lat field represents the latitude of the geographic coordinates for the address.
lon: f64The lon field represents the longitude of the geographic coordinates for the address.
street_name_pre_modifier: Option<StreetNamePreModifier>The street_name_pre_modifier field holds the pre-modifier element of the complete street
name.
street_name_pre_type: Option<StreetNamePreType>The street_name_pre_type field holds the pre-type element of the complete street
name.
street_separator: Option<StreetSeparator>The street_separator field holds the separator element of the complete street
name.
Trait Implementations§
Source§impl Address for JosephineCountySpatialAddress
impl Address for JosephineCountySpatialAddress
Source§fn number_mut(&mut self) -> &mut i64
fn number_mut(&mut self) -> &mut i64
number_mut method returns a mutable reference to the address number component.Source§fn number_suffix(&self) -> &Option<String>
fn number_suffix(&self) -> &Option<String>
number_suffix method returns the address number suffix component.Source§fn number_suffix_mut(&mut self) -> &mut Option<String>
fn number_suffix_mut(&mut self) -> &mut Option<String>
number_suffix_mut method returns a mutable reference to the address number suffix component.Source§fn directional(&self) -> &Option<StreetNamePreDirectional>
fn directional(&self) -> &Option<StreetNamePreDirectional>
directional method returns the StreetNamePreDirectional component, if any.Source§fn directional_mut(&mut self) -> &mut Option<StreetNamePreDirectional>
fn directional_mut(&mut self) -> &mut Option<StreetNamePreDirectional>
directional method returns a mutable reference to the StreetNamePreDirectional value.Source§fn street_name_pre_modifier(&self) -> &Option<StreetNamePreModifier>
fn street_name_pre_modifier(&self) -> &Option<StreetNamePreModifier>
street_name_pre_modifier method returns the street name pre modifier component.Source§fn street_name_pre_modifier_mut(&mut self) -> &mut Option<StreetNamePreModifier>
fn street_name_pre_modifier_mut(&mut self) -> &mut Option<StreetNamePreModifier>
street_name_pre_modifier_mut method returns a mutable reference to the street name pre modifier component.Source§fn street_name_pre_type(&self) -> &Option<StreetNamePreType>
fn street_name_pre_type(&self) -> &Option<StreetNamePreType>
street_name_pre_type method returns the street name pre type component.Source§fn street_name_pre_type_mut(&mut self) -> &mut Option<StreetNamePreType>
fn street_name_pre_type_mut(&mut self) -> &mut Option<StreetNamePreType>
street_name_pre_type_mut method returns a mutable reference to the street name pre type component.Source§fn street_name_separator(&self) -> &Option<StreetSeparator>
fn street_name_separator(&self) -> &Option<StreetSeparator>
street_name_separator method returns the separator element component.Source§fn street_name_separator_mut(&mut self) -> &mut Option<StreetSeparator>
fn street_name_separator_mut(&mut self) -> &mut Option<StreetSeparator>
street_name_separator_mut method returns a mutable reference to the separator element component.Source§fn street_name(&self) -> &String
fn street_name(&self) -> &String
street_name method returns the street name component.Source§fn street_name_mut(&mut self) -> &mut String
fn street_name_mut(&mut self) -> &mut String
street_name_mut method returns a mutable reference to the street name component.Source§fn street_type(&self) -> &Option<StreetNamePostType>
fn street_type(&self) -> &Option<StreetNamePostType>
street_type method returns the street name post type component.Source§fn street_type_mut(&mut self) -> &mut Option<StreetNamePostType>
fn street_type_mut(&mut self) -> &mut Option<StreetNamePostType>
street_type_mut method returns a mutable reference to the street name post type component.Source§fn subaddress_id(&self) -> &Option<String>
fn subaddress_id(&self) -> &Option<String>
subaddress_id method returns the subaddress identifier component, if any.Source§fn subaddress_id_mut(&mut self) -> &mut Option<String>
fn subaddress_id_mut(&mut self) -> &mut Option<String>
subaddress_id_mut method returns a mutable reference to the vale of the subaddress identifier component.Source§fn subaddress_type(&self) -> &Option<SubaddressType>
fn subaddress_type(&self) -> &Option<SubaddressType>
subaddress_type method returns the subaddress type component, if any.Source§fn subaddress_type_mut(&mut self) -> &mut Option<SubaddressType>
fn subaddress_type_mut(&mut self) -> &mut Option<SubaddressType>
subaddress_type_mut method returns a mutable reference to the value of the subaddress type component.Source§fn floor(&self) -> &Option<i64>
fn floor(&self) -> &Option<i64>
floor method returns the floor identifier corresponding to the Floor field in the
NENA standard, required for emergency response.Source§fn floor_mut(&mut self) -> &mut Option<i64>
fn floor_mut(&mut self) -> &mut Option<i64>
floor_mut method returns a mutable reference to the value of the floor identifier.Source§fn building(&self) -> &Option<String>
fn building(&self) -> &Option<String>
building method returns the building identifier corresponing to the Building field
in the NENA standard, required for emergency response.Source§fn building_mut(&mut self) -> &mut Option<String>
fn building_mut(&mut self) -> &mut Option<String>
building_mut method returns a mutable reference to the value of the building
identifier.Source§fn zip_mut(&mut self) -> &mut i64
fn zip_mut(&mut self) -> &mut i64
zip_mut method returns a mutable reference to the value of the zip code component.Source§fn postal_community(&self) -> &String
fn postal_community(&self) -> &String
postal_community method returns the postal community component of the address, being
the unincorporated or incorporated municipality name.Source§fn postal_community_mut(&mut self) -> &mut String
fn postal_community_mut(&mut self) -> &mut String
postal_community_mut method returns a mutable reference to the value of the postal
community component.Source§fn state_mut(&mut self) -> &mut State
fn state_mut(&mut self) -> &mut State
state_mut method returns a mutable reference to the value of the state name
component.Source§fn status(&self) -> &AddressStatus
fn status(&self) -> &AddressStatus
status method returns the local status of the address, as determined by the
relevant address authority.Source§fn status_mut(&mut self) -> &mut AddressStatus
fn status_mut(&mut self) -> &mut AddressStatus
status_mut method returns a mutable reference to the value of the address status.Source§fn coincident<T: Address>(&self, other: &T) -> AddressMatch
fn coincident<T: Address>(&self, other: &T) -> AddressMatch
other address refers to the same assignment or
location. If the addresses are coincident, but details (such as the floor number or
address status) differ, then the differences are recorded as a vector of type Mismatch.
The results are converted to type AddressMatch.Source§fn label(&self) -> String
fn label(&self) -> String
Source§fn complete_street_name(&self, abbreviate: bool) -> String
fn complete_street_name(&self, abbreviate: bool) -> String
complete_street_name method returns the complete street name of the address.Source§fn common_street_name(&self) -> String
fn common_street_name(&self) -> String
common_street_name method returns the street name, including any premodifier, pretype
and separator elements. Read moreSource§fn complete_address_number(&self) -> String
fn complete_address_number(&self) -> String
complete_address_number method returns the address number and address number suffix,
if any, as a String.Source§fn directional_abbreviated(&self) -> Option<String>
fn directional_abbreviated(&self) -> Option<String>
pre_directional field represents the street name predirectional component of the
complete street name. This function returns the cloned value of the field.Source§fn standardize(&mut self)
fn standardize(&mut self)
standardize method takes county address naming conventions and converts them to city
naming conventions.Source§impl Addresses<JosephineCountySpatialAddress> for JosephineCountySpatialAddresses
impl Addresses<JosephineCountySpatialAddress> for JosephineCountySpatialAddresses
Source§fn filter(&self, filter: &str) -> Vec<T>
fn filter(&self, filter: &str) -> Vec<T>
filter method returns the subset of addresses that match the filter. Current values
include “duplicate”, which retains addresses that contain a duplicate in the set.Source§fn filter_field(&mut self, filter: &str, field: &str)
fn filter_field(&mut self, filter: &str, field: &str)
filter_field method returns the subset of addresses where the field filter is equal
to the value in field.Source§fn contains_street(&self, street: &String) -> bool
fn contains_street(&self, street: &String) -> bool
street, returning true if
equal.Source§fn orphan_streets<V: Address + Clone + Send + Sync, U: Addresses<V>>(
&self,
other: &U,
) -> Vec<String>
fn orphan_streets<V: Address + Clone + Send + Sync, U: Addresses<V>>( &self, other: &U, ) -> Vec<String>
orphan_streets method returns the list of complete street names that are contained in
self but are not present in other.Source§fn citify(&mut self)
fn citify(&mut self)
citify method takes county address naming conventions and converts them to city
naming conventions.Source§fn lexis_nexis(&self, other: &Self) -> Result<LexisNexis, Builder>
fn lexis_nexis(&self, other: &Self) -> Result<LexisNexis, Builder>
LexisNexis method produces the LexisNexis table showing dispatch jurisdiction for
address ranges within the City of Grants Pass.Source§fn standardize(&mut self)
fn standardize(&mut self)
standardize method takes county address naming conventions and converts them to city
naming conventions.Source§impl Cartesian for JosephineCountySpatialAddress
impl Cartesian for JosephineCountySpatialAddress
Source§fn x(&self) -> f64
fn x(&self) -> f64
x method returns the cartesian X portion of the projected coordinates of the address.Source§fn y(&self) -> f64
fn y(&self) -> f64
y method returns the cartesian Y portion of the projected coordinates of the address.Source§fn distance<T: Cartesian + ?Sized>(&self, other: &T) -> f64
fn distance<T: Cartesian + ?Sized>(&self, other: &T) -> f64
distance function returns the distance between a point self and another point
other in the same unit as self.Source§fn delta<T: Address + Clone + Cartesian + Sync + Send>(
&self,
others: &[T],
min: f64,
) -> AddressDeltas
fn delta<T: Address + Clone + Cartesian + Sync + Send>( &self, others: &[T], min: f64, ) -> AddressDeltas
others, calculates the distance from self
to matching addresses in others, collects the results into a vector and
returns the results in the records field of a new AddressDeltas struct.Source§fn deltas<T: Cartesian + Address + Clone + Sync + Send, U: Cartesian + Address + Clone + Sync + Send>(
values: &[T],
other: &[U],
min: f64,
) -> AddressDeltas
fn deltas<T: Cartesian + Address + Clone + Sync + Send, U: Cartesian + Address + Clone + Sync + Send>( values: &[T], other: &[U], min: f64, ) -> AddressDeltas
others, calculates the distance from self
to matching addresses in others, collects the results into a vector and
returns the results in the records field of a new AddressDeltas struct. Calls
[Point::delta].Source§impl Clone for JosephineCountySpatialAddress
impl Clone for JosephineCountySpatialAddress
Source§fn clone(&self) -> JosephineCountySpatialAddress
fn clone(&self) -> JosephineCountySpatialAddress
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for JosephineCountySpatialAddress
impl Default for JosephineCountySpatialAddress
Source§fn default() -> JosephineCountySpatialAddress
fn default() -> JosephineCountySpatialAddress
Source§impl<'de> Deserialize<'de> for JosephineCountySpatialAddress
impl<'de> Deserialize<'de> for JosephineCountySpatialAddress
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 PartialEq for JosephineCountySpatialAddress
impl PartialEq for JosephineCountySpatialAddress
Source§fn eq(&self, other: &JosephineCountySpatialAddress) -> bool
fn eq(&self, other: &JosephineCountySpatialAddress) -> bool
self and other values to be equal, and is used by ==.Source§impl PartialOrd for JosephineCountySpatialAddress
impl PartialOrd for JosephineCountySpatialAddress
impl StructuralPartialEq for JosephineCountySpatialAddress
Auto Trait Implementations§
impl Freeze for JosephineCountySpatialAddress
impl RefUnwindSafe for JosephineCountySpatialAddress
impl Send for JosephineCountySpatialAddress
impl Sync for JosephineCountySpatialAddress
impl Unpin for JosephineCountySpatialAddress
impl UnwindSafe for JosephineCountySpatialAddress
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