pub struct Address {
pub address_1: String,
pub address_2: String,
pub city: String,
pub state_or_province: String,
pub postal_code: String,
pub country_code: String,
pub latitude: f64,
pub longitude: f64,
}Expand description
Models a physical address.
Fields§
§address_1: StringThe first line of the street address.
address_2: StringThe second line of the street address.
city: StringThe city associated with the street address.
state_or_province: StringThe state or province associated with the street address.
postal_code: StringThe postal code associated with the street address.
country_code: StringThe ISO country code associated with the street address.
latitude: f64The latitude component of the address’s GPS coordinates.
longitude: f64The longitude component of the address’s GPS coordinates.
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
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