pub struct Address {
pub name: String,
pub address_line1: String,
pub address_line2: Option<String>,
pub address_line3: Option<String>,
pub district_or_county: Option<String>,
pub email: String,
pub city: String,
pub state_or_province_code: Option<String>,
pub postal_code: String,
pub country_code: String,
pub phone: String,
}Expand description
Address : The postal address information.
Fields
name: StringThe name of the addressee, or business name.
address_line1: StringThe street address information.
address_line2: Option<String>Additional street address information.
address_line3: Option<String>Additional street address information.
district_or_county: Option<String>The district or county.
email: StringThe email address.
city: StringThe city.
state_or_province_code: Option<String>The state or province code. Note. Required in the Canada, US, and UK marketplaces. Also required for shipments originating from China.
postal_code: StringThe zip code or postal code.
country_code: StringThe country code. A two-character country code, in ISO 3166-1 alpha-2 format.
phone: StringThe phone number.
Implementations
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Address
impl<'de> Deserialize<'de> for Address
sourcefn 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
impl StructuralPartialEq for Address
Auto Trait Implementations
impl RefUnwindSafe for Address
impl Send for Address
impl Sync for Address
impl Unpin for Address
impl UnwindSafe for Address
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more