pub struct FeatureData {
pub geojson: String,
pub change_type: ChangeType,
pub layer: Option<String>,
}Expand description
Feature data with metadata.
Fields§
§geojson: StringGeoJSON string
change_type: ChangeTypeChange type
layer: Option<String>Layer name
Implementations§
Source§impl FeatureData
impl FeatureData
Sourcepub fn new(
geojson: String,
change_type: ChangeType,
layer: Option<String>,
) -> Self
pub fn new( geojson: String, change_type: ChangeType, layer: Option<String>, ) -> Self
Create new feature data.
Sourcepub fn parse_json(&self) -> Result<Value>
pub fn parse_json(&self) -> Result<Value>
Parse GeoJSON.
Trait Implementations§
Source§impl Clone for FeatureData
impl Clone for FeatureData
Source§fn clone(&self) -> FeatureData
fn clone(&self) -> FeatureData
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FeatureData
impl RefUnwindSafe for FeatureData
impl Send for FeatureData
impl Sync for FeatureData
impl Unpin for FeatureData
impl UnsafeUnpin for FeatureData
impl UnwindSafe for FeatureData
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