pub struct Country {
pub name: String,
pub iso2: String,
pub iso3: String,
pub map_name: Option<String>,
pub lat: f64,
pub lon: f64,
pub region: String,
pub slug: String,
pub datasets: Option<u32>,
pub hours: Option<f64>,
}Expand description
A country in the catalogue’s coverage map.
Fields§
§name: StringCanonical country name.
iso2: StringISO 3166-1 alpha-2 code.
iso3: StringISO 3166-1 alpha-3 code.
map_name: Option<String>Name used by the bundled GeoJSON polygons. None for island states,
which have no polygon and are drawn from lat and lon instead.
lat: f64Centroid latitude.
lon: f64Centroid longitude.
region: StringRegional grouping, for example Southern Africa.
slug: StringURL slug, normally the lowercased alpha-2 code.
datasets: Option<u32>Dataset count, when the record came from the HTTP API.
hours: Option<f64>Counted hours, when the record came from the HTTP API.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Country
impl<'de> Deserialize<'de> for Country
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
impl StructuralPartialEq for Country
Auto Trait Implementations§
impl Forget for Country
impl Freeze for Country
impl RefUnwindSafe for Country
impl Send for Country
impl Sync for Country
impl Unpin for Country
impl UnsafeUnpin for Country
impl UnwindSafe for Country
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