pub struct City {
pub city: Option<City>,
pub continent: Option<Continent>,
pub country: Option<Country>,
pub location: Option<Location>,
pub postal: Option<Postal>,
pub registered_country: Option<Country>,
pub represented_country: Option<RepresentedCountry>,
pub subdivisions: Option<Vec<Subdivision>>,
pub traits: Option<Traits>,
}
Expand description
GeoIP2 City record
Fields§
§city: Option<City>
§continent: Option<Continent>
§country: Option<Country>
§location: Option<Location>
§postal: Option<Postal>
§registered_country: Option<Country>
§represented_country: Option<RepresentedCountry>
§subdivisions: Option<Vec<Subdivision>>
§traits: Option<Traits>
Trait Implementations§
source§impl<'de> Deserialize<'de> for City
impl<'de> Deserialize<'de> for City
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