pub struct FeatureCollection<M = ()> {
pub _type: String,
pub features: Vec<WMFeature<M>>,
pub attributions: Option<Attributions>,
pub bbox: Option<BBox>,
}
Expand description
WM FeatureCollection
Fields§
§_type: String
Type will always be “FeatureCollection”
features: Vec<WMFeature<M>>
Collection of WM features
attributions: Option<Attributions>
Attribution data
bbox: Option<BBox>
Bounding box
Implementations§
Source§impl<M> FeatureCollection<M>
impl<M> FeatureCollection<M>
Sourcepub fn new(attributions: Option<Attributions>) -> Self
pub fn new(attributions: Option<Attributions>) -> Self
Create a new FeatureCollection
Sourcepub fn update_bbox(&mut self, bbox: BBox)
pub fn update_bbox(&mut self, bbox: BBox)
update the bounding box
Trait Implementations§
Source§impl<M: Clone> Clone for FeatureCollection<M>
impl<M: Clone> Clone for FeatureCollection<M>
Source§fn clone(&self) -> FeatureCollection<M>
fn clone(&self) -> FeatureCollection<M>
Returns a copy 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 moreSource§impl<M: Debug> Debug for FeatureCollection<M>
impl<M: Debug> Debug for FeatureCollection<M>
Source§impl<'de, M> Deserialize<'de> for FeatureCollection<M>where
M: Deserialize<'de>,
impl<'de, M> Deserialize<'de> for FeatureCollection<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
Source§impl<M: PartialEq> PartialEq for FeatureCollection<M>
impl<M: PartialEq> PartialEq for FeatureCollection<M>
Source§impl<M> Serialize for FeatureCollection<M>where
M: Serialize,
impl<M> Serialize for FeatureCollection<M>where
M: Serialize,
impl<M> StructuralPartialEq for FeatureCollection<M>
Auto Trait Implementations§
impl<M> Freeze for FeatureCollection<M>
impl<M> RefUnwindSafe for FeatureCollection<M>where
M: RefUnwindSafe,
impl<M> Send for FeatureCollection<M>where
M: Send,
impl<M> Sync for FeatureCollection<M>where
M: Sync,
impl<M> Unpin for FeatureCollection<M>where
M: Unpin,
impl<M> UnwindSafe for FeatureCollection<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