Skip to main content

PostalAddressUpdate

Struct PostalAddressUpdate 

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

Update struct corresponding to PostalAddress

Fields§

§country: Option<String>§territory: Option<String>§district: Option<String>§city: Option<String>§division: Option<String>§neighborhood: Option<String>§leading_street_direction: Option<String>§street: Option<String>§trailing_street_suffix: Option<String>§street_suffix: Option<String>§house_number: Option<Int64>§house_number_suffix: Option<String>§landmark: Option<String>§location: Option<String>§floor: Option<String>§name: Option<String>§postal_code: Option<String>§building: Option<String>§unit: Option<String>§room: Option<String>§seat: Option<String>§place_type: Option<String>§community: Option<String>§po_box: Option<String>§additional_code: Option<String>§road: Option<String>§road_section: Option<String>§road_branch: Option<String>§road_sub_branch: Option<String>§road_pre_modifier: Option<String>§road_post_modifier: Option<String>§gps_coords: Option<String>§additional_info: Option<String>

Implementations§

Source§

impl PostalAddressUpdate

Source

pub fn builder() -> Self

Source

pub const fn build(self) -> Self

Source

pub fn with_country(self, v: String) -> Self

Source

pub fn with_territory(self, v: String) -> Self

Source

pub fn with_district(self, v: String) -> Self

Source

pub fn with_city(self, v: String) -> Self

Source

pub fn with_division(self, v: String) -> Self

Source

pub fn with_neighborhood(self, v: String) -> Self

Source

pub fn with_leading_street_direction(self, v: String) -> Self

Source

pub fn with_street(self, v: String) -> Self

Source

pub fn with_trailing_street_suffix(self, v: String) -> Self

Source

pub fn with_street_suffix(self, v: String) -> Self

Source

pub fn with_house_number(self, v: Int64) -> Self

Source

pub fn with_house_number_suffix(self, v: String) -> Self

Source

pub fn with_landmark(self, v: String) -> Self

Source

pub fn with_location(self, v: String) -> Self

Source

pub fn with_floor(self, v: String) -> Self

Source

pub fn with_name(self, v: String) -> Self

Source

pub fn with_postal_code(self, v: String) -> Self

Source

pub fn with_building(self, v: String) -> Self

Source

pub fn with_unit(self, v: String) -> Self

Source

pub fn with_room(self, v: String) -> Self

Source

pub fn with_seat(self, v: String) -> Self

Source

pub fn with_place_type(self, v: String) -> Self

Source

pub fn with_community(self, v: String) -> Self

Source

pub fn with_po_box(self, v: String) -> Self

Source

pub fn with_additional_code(self, v: String) -> Self

Source

pub fn with_road(self, v: String) -> Self

Source

pub fn with_road_section(self, v: String) -> Self

Source

pub fn with_road_branch(self, v: String) -> Self

Source

pub fn with_road_sub_branch(self, v: String) -> Self

Source

pub fn with_road_pre_modifier(self, v: String) -> Self

Source

pub fn with_road_post_modifier(self, v: String) -> Self

Source

pub fn with_gps_coords(self, v: String) -> Self

Source

pub fn with_additional_info(self, v: String) -> Self

Trait Implementations§

Source§

impl Debug for PostalAddressUpdate

Source§

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

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

impl Default for PostalAddressUpdate

Source§

fn default() -> PostalAddressUpdate

Returns the “default value” for a type. Read more
Source§

impl Serialize for PostalAddressUpdate

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

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