Skip to main content

PostalAddress

Struct PostalAddress 

Source
pub struct PostalAddress {
Show 33 fields pub country: Option<Option<String>>, pub territory: Option<Option<String>>, pub district: Option<Option<String>>, pub city: Option<Option<String>>, pub division: Option<Option<String>>, pub neighborhood: Option<Option<String>>, pub leading_street_direction: Option<Option<String>>, pub street: Option<Option<String>>, pub trailing_street_suffix: Option<Option<String>>, pub street_suffix: Option<Option<String>>, pub house_number: Option<Option<Int64>>, pub house_number_suffix: Option<Option<String>>, pub landmark: Option<Option<String>>, pub location: Option<Option<String>>, pub floor: Option<Option<String>>, pub name: Option<Option<String>>, pub postal_code: Option<Option<String>>, pub building: Option<Option<String>>, pub unit: Option<Option<String>>, pub room: Option<Option<String>>, pub seat: Option<Option<String>>, pub place_type: Option<Option<String>>, pub community: Option<Option<String>>, pub po_box: Option<Option<String>>, pub additional_code: Option<Option<String>>, pub road: Option<Option<String>>, pub road_section: Option<Option<String>>, pub road_branch: Option<Option<String>>, pub road_sub_branch: Option<Option<String>>, pub road_pre_modifier: Option<Option<String>>, pub road_post_modifier: Option<Option<String>>, pub gps_coords: Option<Option<String>>, pub additional_info: Option<Option<String>>,
}

Fields§

§country: Option<Option<String>>

The country.

The value shall conform to the RFC5139-defined requirements of the Country field.

§territory: Option<Option<String>>

A top-level subdivision within a country.

The value shall conform to the RFC5139-defined requirements of the A1 field when it names a territory, state, region, province, or prefecture within a country.

§district: Option<Option<String>>

A county, parish, gun (JP), or district (IN).

The value shall conform to the RFC5139-defined requirements of the A2 field. Names a county, parish, gun (JP), or district (IN).

§city: Option<Option<String>>

City, township, or shi (JP).

The value shall conform to the RFC5139-defined requirements of the A3 field. Names a city, township, or shi (JP).

§division: Option<Option<String>>

City division, borough, city district, ward, or chou (JP).

The value shall conform to the RFC5139-defined requirements of the A4 field. Names a city division, borough, city district, ward, or chou (JP).

§neighborhood: Option<Option<String>>

Neighborhood or block.

The value shall conform to the RFC5139-defined requirements of the A5 field. Names a neighborhood or block.

§leading_street_direction: Option<Option<String>>

A leading street direction.

The value shall conform to the requirements of the PRD field as defined in RFC5139. Names a leading street direction, (N, W, or SE).

§street: Option<Option<String>>

Street name.

The value shall conform to the RFC5139-defined requirements of the A6 field. Names a street.

§trailing_street_suffix: Option<Option<String>>

A trailing street suffix.

The value shall conform to the RFC5139-defined requirements of the POD field. Names a trailing street suffix.

§street_suffix: Option<Option<String>>

Avenue, Platz, Street, Circle.

The value shall conform to the RFC5139-defined requirements of the STS field. Names a street suffix.

§house_number: Option<Option<Int64>>

The numeric portion of house number.

The value shall conform to the RFC5139-defined requirements of the HNO field. The numeric portion of the house number.

§house_number_suffix: Option<Option<String>>

The house number suffix.

The value shall conform to the RFC5139-defined requirements of the HNS field. Provides a suffix to a house number, (F, B, or 1/2).

§landmark: Option<Option<String>>

The landmark.

The value shall conform to the RFC5139-defined requirements of the LMK field. Identifies a landmark or vanity address.

§location: Option<Option<String>>

The room designation or other additional information.

The value shall conform to the RFC5139-defined requirements of the LOC field. Provides additional information.

§floor: Option<Option<String>>

The floor.

The value shall conform to the RFC5139-defined requirements of the FLR field. Provides a floor designation.

§name: Option<Option<String>>

The name.

The value shall conform to the RFC5139-defined requirements of the NAM field. Names the occupant.

§postal_code: Option<Option<String>>

The postal code or zip code.

The value shall conform to the RFC5139-defined requirements of the PC field. A postal code (or zip code).

§building: Option<Option<String>>

The name of the building.

The value shall conform to the RFC5139-defined requirements of the BLD field. Names the building.

§unit: Option<Option<String>>

The name or number of the apartment unit or suite.

The value shall conform to the RFC5139-defined requirements of the UNIT field. The name or number of a unit, such as the apartment or suite, to locate the resource.

§room: Option<Option<String>>

The name or number of the room.

The value shall conform to the RFC5139-defined requirements of the ROOM field. A name or number of a room to locate the resource within the unit.

§seat: Option<Option<String>>

The seat, such as the desk, cubicle, or workstation.

The value shall conform to the RFC5139-defined requirements of the SEAT field. A name or number of a seat, such as the desk, cubicle, or workstation.

§place_type: Option<Option<String>>

The description of the type of place that is addressed.

The value shall conform to the RFC5139-defined requirements of the PLC field. Examples include office and residence.

§community: Option<Option<String>>

The postal community name.

The value shall conform to the RFC5139-defined requirements of the PCN field. A postal community name.

§po_box: Option<Option<String>>

The post office box (PO box).

The value shall conform to the RFC5139-defined requirements of the POBOX field. A post office box (PO box).

§additional_code: Option<Option<String>>

The additional code.

The value shall conform to the RFC5139-defined requirements of the ADDCODE field.

§road: Option<Option<String>>

The primary road or street.

The value shall conform to the RFC5139-defined requirements of the RD field. Designates a primary road or street.

§road_section: Option<Option<String>>

The road section.

The value shall conform to the RFC5139-defined requirements of the RDSEC field. A road section.

§road_branch: Option<Option<String>>

The road branch.

The value shall conform to the RFC5139-defined requirements of the RDBR field. Shall contain a post office box (PO box) road branch.

§road_sub_branch: Option<Option<String>>

The road sub branch.

The value shall conform to the RFC5139-defined requirements of the RDSUBBR field.

§road_pre_modifier: Option<Option<String>>

The road pre-modifier.

The value shall conform to the RFC5139-defined requirements of the PRM field. For example, Old or New.

§road_post_modifier: Option<Option<String>>

The road post-modifier.

The value shall conform to the RFC5139-defined requirements of the POM field. For example, Extended.

§gps_coords: Option<Option<String>>

The GPS coordinates of the part.

The value shall conform to the RFC5139-defined requirements of the ADDCODE field. Shall contain the GPS coordinates of the location. If furnished, expressed in the [-][nn]n.nnnnnn, [-][nn]n.nnnnn format. For example, two comma-separated positive or negative numbers with six decimal places of precision.

§additional_info: Option<Option<String>>

The room designation or other additional information.

The value shall conform to the requirements of the LOC field as defined in RFC5139. Provides additional information.

Trait Implementations§

Source§

impl Debug for PostalAddress

Source§

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

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

impl<'de> Deserialize<'de> for PostalAddress

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more

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> 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> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. 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>,