Struct geojson::FeatureCollection
[−]
[src]
pub struct FeatureCollection {
pub bbox: Option<Bbox>,
pub crs: Option<Crs>,
pub features: Vec<Feature>,
}Feature Collection Objects
[GeoJSON Format Specification § 2.3] (http://geojson.org/geojson-spec.html#feature-collection-objects)
Examples
Serialization:
use geojson::FeatureCollection; use geojson::GeoJson; let feature_collection = FeatureCollection { bbox: None, crs: None, features: vec![], }; let serialized = GeoJson::from(feature_collection).to_string(); assert_eq!( serialized, "{\"features\":[],\"type\":\"FeatureCollection\"}" );
Fields
bbox: Option<Bbox>
crs: Option<Crs>
features: Vec<Feature>
Trait Implementations
impl Clone for FeatureCollection[src]
fn clone(&self) -> FeatureCollection
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl Debug for FeatureCollection[src]
impl PartialEq for FeatureCollection[src]
fn eq(&self, __arg_0: &FeatureCollection) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &FeatureCollection) -> bool
This method tests for !=.
impl Serialize for FeatureCollection[src]
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer,
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<'de> Deserialize<'de> for FeatureCollection[src]
fn deserialize<D>(deserializer: D) -> Result<FeatureCollection, D::Error> where
D: Deserializer<'de>,
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more