pub struct Address {
pub name: String,
pub address_line1: String,
pub address_line2: Option<String>,
pub address_line3: Option<String>,
pub city: Option<String>,
pub county: Option<String>,
pub district: Option<String>,
pub state_or_region: Option<String>,
pub postal_code: Option<String>,
pub country_code: String,
pub phone: Option<String>,
}Expand description
Address : Address of the party.
Fields§
§name: StringThe name of the person, business or institution at that address.
address_line1: StringFirst line of the address.
address_line2: Option<String>Additional address information, if required.
address_line3: Option<String>Additional address information, if required.
city: Option<String>The city where the person, business or institution is located.
county: Option<String>The county where person, business or institution is located.
district: Option<String>The district where person, business or institution is located.
state_or_region: Option<String>The state or region where person, business or institution is located.
postal_code: Option<String>The postal code of that address. It conatins a series of letters or digits or both, sometimes including spaces or punctuation.
country_code: StringThe two digit country code. In ISO 3166-1 alpha-2 format.
phone: 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 UnsafeUnpin 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