pub struct AddressCreate {
pub id: AddressID,
pub description: Option<String>,
pub first_line: Option<String>,
pub second_line: Option<String>,
pub city: Option<String>,
pub postal_code: Option<String>,
pub region: Option<String>,
pub country_code: CountryCodeSupported,
pub custom_data: Option<HashMap<String, String>>,
pub import_meta: ImportMeta,
}
Expand description
Represents an address entity when creating addresses.
Fields§
§id: AddressID
Unique Paddle ID for this address entity, prefixed with add_
.
description: Option<String>
Memorable description for this address.
first_line: Option<String>
First line of this address.
second_line: Option<String>
Second line of this address.
city: Option<String>
City of this address.
postal_code: Option<String>
ZIP or postal code of this address. Required for some countries.
region: Option<String>
State, county, or region of this address.
country_code: CountryCodeSupported
Supported two-letter ISO 3166-1 alpha-2 country code.
custom_data: Option<HashMap<String, String>>
Your own structured key-value data.
import_meta: ImportMeta
Import information for this entity. null
if this entity is not imported.
Trait Implementations§
Source§impl Clone for AddressCreate
impl Clone for AddressCreate
Source§fn clone(&self) -> AddressCreate
fn clone(&self) -> AddressCreate
Returns a copy 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 AddressCreate
impl Debug for AddressCreate
Source§impl<'de> Deserialize<'de> for AddressCreate
impl<'de> Deserialize<'de> for AddressCreate
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 AddressCreate
impl RefUnwindSafe for AddressCreate
impl Send for AddressCreate
impl Sync for AddressCreate
impl Unpin for AddressCreate
impl UnwindSafe for AddressCreate
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