Struct GrantsPassSpatialAddress

Source
pub struct GrantsPassSpatialAddress {
Show 35 fields pub address_number: i64, pub address_number_suffix: Option<String>, pub street_name_pre_directional: Option<StreetNamePreDirectional>, pub street_name_pre_modifier: Option<StreetNamePreModifier>, pub street_name_pre_type: Option<StreetNamePreType>, pub street_name_separator: Option<StreetSeparator>, 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 building: Option<String>, pub zip_code: i64, pub status: AddressStatus, pub notification: Option<String>, pub notes: Option<String>, pub global_id: String, pub created_user: Option<String>, pub created_date: Option<String>, pub last_edited_user: String, pub last_edited_date: String, pub complete_address_number: String, pub complete_street_name: String, pub complete_subaddress: Option<String>, pub complete_street_address: String, pub street_address_label: String, pub place_state_zip: String, pub postal_community: String, pub state_name: State, pub incorporated_municipality: Option<String>, pub unincorporated_community: Option<String>, pub x: f64, pub y: f64, pub latitude: f64, pub longitude: f64,
}
Expand description

The GrantsPassSpatialAddress struct represents an address site point for the City of Grants Pass that includes geographic and projected coordinate information.

Fields§

§address_number: i64

The 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_pre_modifier: Option<StreetNamePreModifier>

The street_name_pre_modifier field represents the street name pre modifier component of the complete street name.

§street_name_pre_type: Option<StreetNamePreType>

The street_name_pre_type field represents the street name pre type component of the complete street name.

§street_name_separator: Option<StreetSeparator>

The street_name_separator field represents the separator element component of the complete street name.

§street_name: String

The 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.

§building: Option<String>

The building field represents the building identifier, corresponding to the Building field from the NENA standard.

§zip_code: i64

The zip_code field represents the postal zip code of the address.

§status: AddressStatus

The status field represents the local status of the address as determined by the relevant addressing authority.

§notification: Option<String>

The notification field holds a web link to the final address notification issued by the City of Grants Pass.

§notes: Option<String>

The notes field holds any text note associated with the address.

§global_id: String

The global_id field holds the ESRI Global ID associated with the feature.

§created_user: Option<String>

The created_user field contains the user ID associated with the original creator of the feature.

§created_date: Option<String>

The created_date field contains the original date of creation for the feature.

§last_edited_user: String

The last_edited_user field contains the user ID associated with the last edit of the feature.

§last_edited_date: String

The last_edited_date field contains the date-time stamp associated with the last edit made to the feature.

§complete_address_number: String

The complete_address_number field contains the complete address number component of the address, which is the space-delimited concatenation of the address number and address number suffix components.

§complete_street_name: String

The complete_street_name field contains the complete street name of the address, which is the space-delimited concatenation of those elements present among the street name pre directional, street name pre modifier, street name pre type, separator element, street name, street name post type and street name post directional, in that order.

§complete_subaddress: Option<String>

The complete_subaddress field contains the complete subaddress component of the address, which consists of one or more subaddress elements, where each element includes an optional subaddress type and a required subaddress identifier.

§complete_street_address: String

The complete_street_address is the string representation of the complete street address, where each component is fully spelled out according to FGDC specifications.

§street_address_label: String

The street_address_label field contains the string representation of the street address using standard postal abbreviations for the street name pre directional and the street name post type.

§place_state_zip: String

The place_state_zip field contains the postal community, state name abbreviation and zip code formatted for printing mailing labels.

§postal_community: String

The postal_community field represents the postal community component of the address, being either the unincorporated community or incorporated municipality name.

§state_name: State

The state_name field represents the state name component of the address.

§incorporated_municipality: Option<String>

The incorporated_municipality field contains the name of the incorporated municipality associated with the address (e.g. City of Grants Pass).

§unincorporated_community: Option<String>

The unincorporated_community field contains the name of the unincorporated community associated with the address (e.g. Merlin).

§x: f64

The x field represents the cartesian X portion of the projected coordinates of the address.

§y: f64

The y field represents the cartesian Y portion of the projected coordinates of the address.

§latitude: f64

The latitude field represents the latitude of the geographic coordinates for the address.

§longitude: f64

The longitude field represents the longitude of the geographic coordinates for the address.

Trait Implementations§

Source§

impl Address for GrantsPassSpatialAddress

Source§

fn number(&self) -> i64

The number method returns the address number component.
Source§

fn number_mut(&mut self) -> &mut i64

The number_mut method returns a mutable reference to the address number component.
Source§

fn number_suffix(&self) -> &Option<String>

The number_suffix method returns the address number suffix component.
Source§

fn number_suffix_mut(&mut self) -> &mut Option<String>

The number_suffix_mut method returns a mutable reference to the address number suffix component.
Source§

fn directional(&self) -> &Option<StreetNamePreDirectional>

The directional method returns the StreetNamePreDirectional component, if any.
Source§

fn directional_mut(&mut self) -> &mut Option<StreetNamePreDirectional>

The directional method returns a mutable reference to the StreetNamePreDirectional value.
Source§

fn street_name_pre_modifier(&self) -> &Option<StreetNamePreModifier>

The street_name_pre_modifier method returns the street name pre modifier component.
Source§

fn street_name_pre_modifier_mut(&mut self) -> &mut Option<StreetNamePreModifier>

The 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>

The street_name_pre_type method returns the street name pre type component.
Source§

fn street_name_pre_type_mut(&mut self) -> &mut Option<StreetNamePreType>

The 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>

The street_name_separator method returns the separator element component.
Source§

fn street_name_separator_mut(&mut self) -> &mut Option<StreetSeparator>

The street_name_separator_mut method returns a mutable reference to the separator element component.
Source§

fn street_name(&self) -> &String

The street_name method returns the street name component.
Source§

fn street_name_mut(&mut self) -> &mut String

The street_name_mut method returns a mutable reference to the street name component.
Source§

fn street_type(&self) -> &Option<StreetNamePostType>

The street_type method returns the street name post type component.
Source§

fn street_type_mut(&mut self) -> &mut Option<StreetNamePostType>

The street_type_mut method returns a mutable reference to the street name post type component.
Source§

fn subaddress_id(&self) -> &Option<String>

The subaddress_id method returns the subaddress identifier component, if any.
Source§

fn subaddress_id_mut(&mut self) -> &mut Option<String>

The subaddress_id_mut method returns a mutable reference to the vale of the subaddress identifier component.
Source§

fn subaddress_type(&self) -> &Option<SubaddressType>

The subaddress_type method returns the subaddress type component, if any.
Source§

fn subaddress_type_mut(&mut self) -> &mut Option<SubaddressType>

The subaddress_type_mut method returns a mutable reference to the value of the subaddress type component.
Source§

fn floor(&self) -> &Option<i64>

The 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>

The floor_mut method returns a mutable reference to the value of the floor identifier.
Source§

fn building(&self) -> &Option<String>

The 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>

The building_mut method returns a mutable reference to the value of the building identifier.
Source§

fn zip(&self) -> i64

The zip method returns the zip code component of the address.
Source§

fn zip_mut(&mut self) -> &mut i64

The zip_mut method returns a mutable reference to the value of the zip code component.
Source§

fn postal_community(&self) -> &String

The 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

The postal_community_mut method returns a mutable reference to the value of the postal community component.
Source§

fn state(&self) -> &State

The state method returns the state name component of the address.
Source§

fn state_mut(&mut self) -> &mut State

The state_mut method returns a mutable reference to the value of the state name component.
Source§

fn status(&self) -> &AddressStatus

The status method returns the local status of the address, as determined by the relevant address authority.
Source§

fn status_mut(&mut self) -> &mut AddressStatus

The status_mut method returns a mutable reference to the value of the address status.
Source§

fn coincident<T: Address>(&self, other: &T) -> AddressMatch

An address is coincident when the 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

Returns a String representing the address label, consisting of the complete address number, complete street name and complete subaddress, used to produce map or mailing labels.
Source§

fn complete_street_name(&self, abbreviate: bool) -> String

The complete_street_name method returns the complete street name of the address.
Source§

fn common_street_name(&self) -> String

The common_street_name method returns the street name, including any premodifier, pretype and separator elements. Read more
Source§

fn complete_address_number(&self) -> String

The complete_address_number method returns the address number and address number suffix, if any, as a String.
Source§

fn directional_abbreviated(&self) -> Option<String>

The 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)

The standardize method takes county address naming conventions and converts them to city naming conventions.
Source§

impl Addresses<GrantsPassSpatialAddress> for GrantsPassSpatialAddresses

Source§

fn filter(&self, filter: &str) -> Vec<T>

The 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)

The 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

Compares the complete street name of an address to the value in street, returning true if equal.
Source§

fn orphan_streets<V: Address + Clone + Send + Sync, U: Addresses<V>>( &self, other: &U, ) -> Vec<String>

The 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)

The citify method takes county address naming conventions and converts them to city naming conventions.
Source§

fn lexis_nexis(&self, other: &Self) -> Result<LexisNexis, Builder>

The LexisNexis method produces the LexisNexis table showing dispatch jurisdiction for address ranges within the City of Grants Pass.
Source§

fn standardize(&mut self)

The standardize method takes county address naming conventions and converts them to city naming conventions.
Source§

impl Cartesian for GrantsPassSpatialAddress

Source§

fn x(&self) -> f64

The x method returns the cartesian X portion of the projected coordinates of the address.
Source§

fn y(&self) -> f64

The y method returns the cartesian Y portion of the projected coordinates of the address.
Source§

fn distance<T: Cartesian + ?Sized>(&self, other: &T) -> f64

The 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
where Self: Address + Cartesian + Sized + Clone + Send + Sync,

Distance between address and other addresses with matching label. Iterates through records of 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

Distance between addresses and other addresses with matching label. Iterates through records of 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 GrantsPassSpatialAddress

Source§

fn clone(&self) -> GrantsPassSpatialAddress

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for GrantsPassSpatialAddress

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for GrantsPassSpatialAddress

Source§

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 Geographic for GrantsPassSpatialAddress

Source§

fn latitude(&self) -> f64

The latitude method returns the latitude component of the geographic coordinates.
Source§

fn longitude(&self) -> f64

The longitude method returns the longitude component of the geographic coordinates.
Source§

impl PartialEq for GrantsPassSpatialAddress

Source§

fn eq(&self, other: &GrantsPassSpatialAddress) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for GrantsPassSpatialAddress

Source§

fn partial_cmp(&self, other: &GrantsPassSpatialAddress) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl Serialize for GrantsPassSpatialAddress

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for GrantsPassSpatialAddress

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,