pub struct Feature<M = ()> {
pub _type: String,
pub id: Option<u64>,
pub properties: Properties,
pub geometry: Geometry,
pub metadata: Option<M>,
}
Expand description
Component to build an WM Feature
Fields§
§_type: String
Type will always be “Feature”
id: Option<u64>
Unique identifier
properties: Properties
Properties of the feature
geometry: Geometry
Geometry of the feature
metadata: Option<M>
Metadata of the feature
Implementations§
Trait Implementations§
Source§impl<'de, M> Deserialize<'de> for Feature<M>where
M: Deserialize<'de>,
impl<'de, M> Deserialize<'de> for Feature<M>where
M: 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
impl<M> StructuralPartialEq for Feature<M>
Auto Trait Implementations§
impl<M> Freeze for Feature<M>where
M: Freeze,
impl<M> RefUnwindSafe for Feature<M>where
M: RefUnwindSafe,
impl<M> Send for Feature<M>where
M: Send,
impl<M> Sync for Feature<M>where
M: Sync,
impl<M> Unpin for Feature<M>where
M: Unpin,
impl<M> UnwindSafe for Feature<M>where
M: 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