pub struct PostalAddress {
pub country_name: Option<Option<String>>,
pub country_code: Option<String>,
pub post_code: Option<Option<String>>,
pub city: Option<Option<String>>,
pub street: Option<Option<String>>,
pub house_number: Option<Option<String>>,
}Fields§
§country_name: Option<Option<String>>Country of the address.
country_code: Option<String>ISO 3166-1 alpha-2 2 character country code
post_code: Option<Option<String>>Postal code of the address.
city: Option<Option<String>>City name
street: Option<Option<String>>Street name of the address. Can also contain the house number.
house_number: Option<Option<String>>House number of the address. House number can either be in this separate field, or can be contained in the street field.
Implementations§
Source§impl PostalAddress
impl PostalAddress
pub fn new() -> PostalAddress
Trait Implementations§
Source§impl Clone for PostalAddress
impl Clone for PostalAddress
Source§fn clone(&self) -> PostalAddress
fn clone(&self) -> PostalAddress
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PostalAddress
impl Debug for PostalAddress
Source§impl Default for PostalAddress
impl Default for PostalAddress
Source§fn default() -> PostalAddress
fn default() -> PostalAddress
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PostalAddress
impl<'de> Deserialize<'de> for PostalAddress
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PostalAddress
impl PartialEq for PostalAddress
Source§impl Serialize for PostalAddress
impl Serialize for PostalAddress
impl StructuralPartialEq for PostalAddress
Auto Trait Implementations§
impl Freeze for PostalAddress
impl RefUnwindSafe for PostalAddress
impl Send for PostalAddress
impl Sync for PostalAddress
impl Unpin for PostalAddress
impl UnwindSafe for PostalAddress
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
Mutably borrows from an owned value. Read more