pub struct Location {
pub name: String,
pub description: Option<String>,
pub region: Option<Region>,
pub country: Option<Country>,
pub administrative_area: Option<String>,
pub city: Option<String>,
pub street_address: Option<String>,
pub postal_code: Option<String>,
/* private fields */
}Fields§
§name: String§description: Option<String>§region: Option<Region>§country: Option<Country>§administrative_area: Option<String>§city: Option<String>§street_address: Option<String>§postal_code: Option<String>Implementations§
Source§impl Location
impl Location
pub fn name(&self) -> &str
pub fn description(&self) -> Option<&str>
pub fn coordinates(&self) -> Option<&Coordinates>
Trait Implementations§
Source§impl AsRef<CommonProperties> for Location
impl AsRef<CommonProperties> for Location
Source§fn as_ref(&self) -> &CommonProperties
fn as_ref(&self) -> &CommonProperties
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl<'de> Deserialize<'de> for Location
impl<'de> Deserialize<'de> for Location
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 Location
impl RefUnwindSafe for Location
impl Send for Location
impl Sync for Location
impl Unpin for Location
impl UnwindSafe for Location
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