pub struct Address {
pub name: String,
pub address1: String,
pub address2: Option<String>,
pub city: String,
pub postal_code: Option<String>,
pub country: String,
pub custom_data: Option<CustomData>,
}Expand description
(2.1) A generic address format.
Fields§
§name: StringName of person/company
address1: StringAddress line 1
address2: Option<String>Address line 2
city: StringCity
postal_code: Option<String>Postal code
country: StringCountry name
custom_data: Option<CustomData>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