pub struct OsmAdmin {
pub id: usize,
pub name: EncodableString,
pub level: usize,
pub geometry: EncodableGeometry,
}
Expand description
A representation of the OpenStreetMap
geojson
geojson::Feature
s for administrative areas.
Fields§
§id: usize
The index of the OsmAdmin
in the global static cache.
This is is not stable across builds or new data sets. It is merely unique during a single build.
name: EncodableString
The name
of the OsmAdmin
(e.g., Burkina Faso
).
level: usize
The level
of the OsmAdmin
(e.g., 3
).
geometry: EncodableGeometry
The geometry of the OsmAdmin
.
Trait Implementations§
Source§impl CanGetGeoJsonFeaturesFromSource for OsmAdmin
impl CanGetGeoJsonFeaturesFromSource for OsmAdmin
Source§fn get_geojson_features_from_source() -> FeatureCollection
fn get_geojson_features_from_source() -> FeatureCollection
Get the GeoJSON features from a source.
Source§impl From<(usize, Feature)> for OsmAdmin
impl From<(usize, Feature)> for OsmAdmin
Source§fn from(value: IdFeaturePair) -> OsmAdmin
fn from(value: IdFeaturePair) -> OsmAdmin
Converts to this type from the input type.
Source§impl HasGeometry for OsmAdmin
impl HasGeometry for OsmAdmin
Source§impl HasProperties for OsmAdmin
impl HasProperties for OsmAdmin
Source§fn properties(&self) -> Map<String, Value>
fn properties(&self) -> Map<String, Value>
Get the properties of the
HasProperties
.Auto Trait Implementations§
impl Freeze for OsmAdmin
impl RefUnwindSafe for OsmAdmin
impl Send for OsmAdmin
impl Sync for OsmAdmin
impl Unpin for OsmAdmin
impl UnwindSafe for OsmAdmin
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> ToGeoJsonFeature for Twhere
T: HasGeometry + HasProperties,
impl<T> ToGeoJsonFeature for Twhere
T: HasGeometry + HasProperties,
Source§fn to_feature(&self) -> Feature
fn to_feature(&self) -> Feature
Convert the type to GeoJSON.