pub struct LocationAddress {
pub country_code: String,
pub state: Option<String>,
pub city: Option<String>,
pub street: Option<String>,
}Expand description
A human-readable address associated with a location.
Fields§
§country_code: StringTwo-letter ISO 3166-1 alpha-2 country code.
state: Option<String>State or region name.
city: Option<String>City name.
street: Option<String>Street name and number.
Trait Implementations§
Source§impl Clone for LocationAddress
impl Clone for LocationAddress
Source§fn clone(&self) -> LocationAddress
fn clone(&self) -> LocationAddress
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LocationAddress
impl Debug for LocationAddress
Source§impl<'de> Deserialize<'de> for LocationAddress
impl<'de> Deserialize<'de> for LocationAddress
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 LocationAddress
impl RefUnwindSafe for LocationAddress
impl Send for LocationAddress
impl Sync for LocationAddress
impl Unpin for LocationAddress
impl UnsafeUnpin for LocationAddress
impl UnwindSafe for LocationAddress
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