pub struct Geo {
pub name: String,
pub state: Option<String>,
pub country: Country,
pub latitude: Option<f32>,
pub longitude: Option<f32>,
}Expand description
Geographical information about a location.
Fields§
§name: StringThe name of the location.
state: Option<String>The state of the location within the country (only if applicable).
country: CountryCountry of the location.
latitude: Option<f32>Geographical latitude of the location.
longitude: Option<f32>Geographical longitude of the location.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Geo
impl<'de> Deserialize<'de> for Geo
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 Geo
impl RefUnwindSafe for Geo
impl Send for Geo
impl Sync for Geo
impl Unpin for Geo
impl UnwindSafe for Geo
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