pub enum JSONCollection<M = ()> {
FeatureCollection(FeatureCollection<M>),
S2FeatureCollection(S2FeatureCollection<M>),
Feature(Feature<M>),
VectorFeature(VectorFeature<M>),
}
Expand description
All major S2JSON types
Variants§
FeatureCollection(FeatureCollection<M>)
An WM FeatureCollection
S2FeatureCollection(S2FeatureCollection<M>)
An S2 FeatureCollection
Feature(Feature<M>)
An WM Feature
VectorFeature(VectorFeature<M>)
An WM or S2 Vector Feature
Trait Implementations§
Source§impl<M: Clone> Clone for JSONCollection<M>
impl<M: Clone> Clone for JSONCollection<M>
Source§fn clone(&self) -> JSONCollection<M>
fn clone(&self) -> JSONCollection<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 JSONCollection<M>
impl<M: Debug> Debug for JSONCollection<M>
Source§impl<'de, M> Deserialize<'de> for JSONCollection<M>where
M: Deserialize<'de>,
impl<'de, M> Deserialize<'de> for JSONCollection<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 JSONCollection<M>
impl<M: PartialEq> PartialEq for JSONCollection<M>
Source§impl<M> Serialize for JSONCollection<M>where
M: Serialize,
impl<M> Serialize for JSONCollection<M>where
M: Serialize,
impl<M> StructuralPartialEq for JSONCollection<M>
Auto Trait Implementations§
impl<M> Freeze for JSONCollection<M>where
M: Freeze,
impl<M> RefUnwindSafe for JSONCollection<M>where
M: RefUnwindSafe,
impl<M> Send for JSONCollection<M>where
M: Send,
impl<M> Sync for JSONCollection<M>where
M: Sync,
impl<M> Unpin for JSONCollection<M>where
M: Unpin,
impl<M> UnwindSafe for JSONCollection<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