pub struct GeoJsonFeature<P> {
pub feature_type: String,
pub id: Option<i32>,
pub geometry: Option<GeoJsonGeometry>,
pub properties: P,
}Expand description
GeoJSON Feature type.
Fields§
§feature_type: StringFeature type (always “Feature”).
id: Option<i32>Feature ID.
geometry: Option<GeoJsonGeometry>Geometry data.
properties: PFeature properties.
Trait Implementations§
Source§impl<P: Clone> Clone for GeoJsonFeature<P>
impl<P: Clone> Clone for GeoJsonFeature<P>
Source§impl<P: Debug> Debug for GeoJsonFeature<P>
impl<P: Debug> Debug for GeoJsonFeature<P>
Source§impl<'de, P> Deserialize<'de> for GeoJsonFeature<P>where
P: Deserialize<'de>,
impl<'de, P> Deserialize<'de> for GeoJsonFeature<P>where
P: Deserialize<'de>,
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<P> Freeze for GeoJsonFeature<P>where
P: Freeze,
impl<P> RefUnwindSafe for GeoJsonFeature<P>where
P: RefUnwindSafe,
impl<P> Send for GeoJsonFeature<P>where
P: Send,
impl<P> Sync for GeoJsonFeature<P>where
P: Sync,
impl<P> Unpin for GeoJsonFeature<P>where
P: Unpin,
impl<P> UnsafeUnpin for GeoJsonFeature<P>where
P: UnsafeUnpin,
impl<P> UnwindSafe for GeoJsonFeature<P>where
P: UnwindSafe,
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