pub struct Region {
pub country: Country,
pub desc: String,
pub biggestplace: String,
pub locations: Option<Vec<LocationRef>>,
}Expand description
The geographical region. Contains country, a textual description of the region and the name of the biggest place.
Fields§
§country: CountryCountry which the region belongs to.
desc: StringTextual description of a region.
Example: All locations Example: most of Newfoundland and Labrador Example: some regions of Nunavut Territory; small region of Ontario
biggestplace: StringName of the biggest city within the region.
locations: Option<Vec<LocationRef>>A list of all locations referenced by this region.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Region
impl<'de> Deserialize<'de> for Region
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 Region
impl RefUnwindSafe for Region
impl Send for Region
impl Sync for Region
impl Unpin for Region
impl UnwindSafe for Region
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