pub struct Feature {
pub kind: String,
pub properties: Value,
pub geometry: Geometry,
}Expand description
A single GeoJSON feature in a ShapeFile: a region’s properties and its
boundary geometry.
Fields§
§kind: StringThe GeoJSON object type — "Feature".
properties: ValueThe region’s properties, carried untyped. Keys vary by shape type (e.g. a
bea shape carries bea_region/bea_regi_1), and FRED emits an empty
array [] — not {} — for a feature with no properties, so this is a
serde_json::Value rather than a map.
geometry: GeometryThe region’s boundary geometry.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Feature
impl<'de> Deserialize<'de> for Feature
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 Feature
Auto Trait Implementations§
impl Freeze for Feature
impl RefUnwindSafe for Feature
impl Send for Feature
impl Sync for Feature
impl Unpin for Feature
impl UnsafeUnpin for Feature
impl UnwindSafe for Feature
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