libtad_models/places/
region.rs

1use super::{Country, LocationRef};
2use serde::Deserialize;
3
4#[derive(Deserialize)]
5/// The geographical region. Contains country, a textual description of the region and the name of
6/// the biggest place.
7pub struct Region {
8    /// Country which the region belongs to.
9    pub country: Country,
10
11    /// Textual description of a region.
12    ///
13    /// Example: All locations
14    /// Example: most of Newfoundland and Labrador
15    /// Example: some regions of Nunavut Territory; small region of Ontario
16    pub desc: String,
17
18    /// Name of the biggest city within the region.
19    pub biggestplace: String,
20
21    /// A list of all locations referenced by this region.
22    pub locations: Option<Vec<LocationRef>>,
23}