pub struct Address {
pub name: String,
pub address_line1: String,
pub address_line2: Option<String>,
pub address_line3: Option<String>,
pub state_or_region: String,
pub city: String,
pub country_code: String,
pub postal_code: String,
pub email: Option<String>,
pub copy_emails: Option<Vec<String>>,
pub phone_number: Option<String>,
}Expand description
Address : The address.
Fields§
§name: StringThe name of the person, business or institution at that address.
address_line1: StringFirst line of that address.
address_line2: Option<String>Additional address information, if required.
address_line3: Option<String>Additional address information, if required.
state_or_region: StringThe state or region where the person, business or institution is located.
city: StringThe city where the person, business or institution is located.
country_code: StringThe two digit country code. In ISO 3166-1 alpha-2 format.
postal_code: StringThe postal code of that address. It contains a series of letters or digits or both, sometimes including spaces or punctuation.
email: Option<String>The email address of the contact associated with the address.
copy_emails: Option<Vec<String>>The email cc addresses of the contact associated with the address.
phone_number: Option<String>The phone number of the person, business or institution located at that address.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Address
impl<'de> Deserialize<'de> for Address
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
impl StructuralPartialEq for Address
Auto Trait Implementations§
impl Freeze for Address
impl RefUnwindSafe for Address
impl Send for Address
impl Sync for Address
impl Unpin for Address
impl UnwindSafe for Address
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