pub struct CustomerAddress {
pub _type: Option<String>,
pub address_1: Option<String>,
pub address_2: Option<String>,
pub locality: Option<String>,
pub region: Option<String>,
pub country: Option<String>,
pub postal_code: Option<String>,
}Fields§
§_type: Option<String>The type of the address.
address_1: Option<String>The street number and name of the address.
address_2: Option<String>Additional address line for unit number, P.O. Box, etc.
locality: Option<String>City, town, or locality name the address is located.
region: Option<String>State, province, or region of the address.
country: Option<String>ISO 3166-1 alpha-2 country code (e.g., "US", "CA", "NZ")
postal_code: Option<String>Postal or Zip code of the address.
Implementations§
Source§impl CustomerAddress
impl CustomerAddress
pub fn new() -> CustomerAddress
Trait Implementations§
Source§impl Clone for CustomerAddress
impl Clone for CustomerAddress
Source§fn clone(&self) -> CustomerAddress
fn clone(&self) -> CustomerAddress
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 CustomerAddress
impl Debug for CustomerAddress
Source§impl Default for CustomerAddress
impl Default for CustomerAddress
Source§fn default() -> CustomerAddress
fn default() -> CustomerAddress
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CustomerAddress
impl<'de> Deserialize<'de> for CustomerAddress
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 CustomerAddress
impl PartialEq for CustomerAddress
Source§impl Serialize for CustomerAddress
impl Serialize for CustomerAddress
impl StructuralPartialEq for CustomerAddress
Auto Trait Implementations§
impl Freeze for CustomerAddress
impl RefUnwindSafe for CustomerAddress
impl Send for CustomerAddress
impl Sync for CustomerAddress
impl Unpin for CustomerAddress
impl UnwindSafe for CustomerAddress
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