pub struct AddressPreview {
pub postal_code: Option<String>,
pub country_code: CountryCodeSupported,
}
Expand description
Represents an address entity when previewing addresses.
Fields§
§postal_code: Option<String>
ZIP or postal code of this address. Include for more accurate tax calculations.
country_code: CountryCodeSupported
Supported two-letter ISO 3166-1 alpha-2 country code.
Trait Implementations§
Source§impl Clone for AddressPreview
impl Clone for AddressPreview
Source§fn clone(&self) -> AddressPreview
fn clone(&self) -> AddressPreview
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 AddressPreview
impl Debug for AddressPreview
Source§impl<'de> Deserialize<'de> for AddressPreview
impl<'de> Deserialize<'de> for AddressPreview
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
Auto Trait Implementations§
impl Freeze for AddressPreview
impl RefUnwindSafe for AddressPreview
impl Send for AddressPreview
impl Sync for AddressPreview
impl Unpin for AddressPreview
impl UnwindSafe for AddressPreview
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