pub struct FeatureUpdate {
pub id: String,
pub layer: String,
pub update_type: FeatureUpdateType,
pub feature: Value,
pub timestamp: i64,
}Expand description
Feature update
Fields§
§id: StringFeature ID
layer: StringLayer name
update_type: FeatureUpdateTypeUpdate type
feature: ValueGeoJSON feature
timestamp: i64Timestamp
Implementations§
Source§impl FeatureUpdate
impl FeatureUpdate
Sourcepub fn new(
id: String,
layer: String,
update_type: FeatureUpdateType,
feature: Value,
) -> Self
pub fn new( id: String, layer: String, update_type: FeatureUpdateType, feature: Value, ) -> Self
Create a new feature update
Sourcepub fn to_message(&self) -> Message
pub fn to_message(&self) -> Message
Convert to message
Auto Trait Implementations§
impl Freeze for FeatureUpdate
impl RefUnwindSafe for FeatureUpdate
impl Send for FeatureUpdate
impl Sync for FeatureUpdate
impl Unpin for FeatureUpdate
impl UnsafeUnpin for FeatureUpdate
impl UnwindSafe for FeatureUpdate
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