pub struct Address {
pub street1: Option<String>,
pub street2: Option<String>,
pub city: Option<String>,
pub state: Option<String>,
pub country: Option<String>,
pub zip: Option<String>,
}Expand description
Postal address details.
Fields§
§street1: Option<String>First address line.
street2: Option<String>Second address line.
city: Option<String>City or locality.
state: Option<String>State or region.
country: Option<String>Country.
zip: Option<String>Postal or ZIP code.
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 Eq for Address
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