pub struct CustomerPostalAddress {
pub organization_name: Option<String>,
pub country_code: Option<String>,
pub locality: Option<String>,
pub region: Option<String>,
pub address_line2: Option<String>,
pub address_line3: Option<String>,
pub contact_name: Option<String>,
pub address_line1: Option<String>,
pub postal_code: Option<String>,
}Expand description
JSON template for postal address of a customer.
This type is not used in any activity, and only used as part of another schema.
Fields§
§organization_name: Option<String>The company or company division name.
country_code: Option<String>This is a required property. For countryCode information see the ISO 3166 country code elements.
locality: Option<String>Name of the locality. An example of a locality value is the city of San Francisco.
region: Option<String>Name of the region. An example of a region value is NY for the state of New York.
address_line2: Option<String>Address line 2 of the address.
address_line3: Option<String>Address line 3 of the address.
contact_name: Option<String>The customer contact’s name.
address_line1: Option<String>A customer’s physical address. The address can be composed of one to three lines.
postal_code: Option<String>The postal code. A postalCode example is a postal zip code such as 10009. This is in accordance with - http://portablecontacts.net/draft-spec.html#address_element.
Trait Implementations§
Source§impl Clone for CustomerPostalAddress
impl Clone for CustomerPostalAddress
Source§fn clone(&self) -> CustomerPostalAddress
fn clone(&self) -> CustomerPostalAddress
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CustomerPostalAddress
impl Debug for CustomerPostalAddress
Source§impl Default for CustomerPostalAddress
impl Default for CustomerPostalAddress
Source§fn default() -> CustomerPostalAddress
fn default() -> CustomerPostalAddress
Source§impl<'de> Deserialize<'de> for CustomerPostalAddress
impl<'de> Deserialize<'de> for CustomerPostalAddress
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 Serialize for CustomerPostalAddress
impl Serialize for CustomerPostalAddress
impl Part for CustomerPostalAddress
Auto Trait Implementations§
impl Freeze for CustomerPostalAddress
impl RefUnwindSafe for CustomerPostalAddress
impl Send for CustomerPostalAddress
impl Sync for CustomerPostalAddress
impl Unpin for CustomerPostalAddress
impl UnsafeUnpin for CustomerPostalAddress
impl UnwindSafe for CustomerPostalAddress
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> 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