Struct geojson::Feature [−][src]
pub struct Feature {
pub bbox: Option<Bbox>,
pub geometry: Option<Geometry>,
pub id: Option<JsonValue>,
pub properties: Option<Map<String, JsonValue>>,
pub foreign_members: Option<Map<String, JsonValue>>,
}Feature Objects
[GeoJSON Format Specification § 3.2] (https://tools.ietf.org/html/rfc7946#section-3.2)
Fields
bbox: Option<Bbox>
geometry: Option<Geometry>
id: Option<JsonValue>
properties: Option<Map<String, JsonValue>>
foreign_members: Option<Map<String, JsonValue>>
Foreign Members
[RFC7946 § 6] (https://tools.ietf.org/html/rfc7946#section-6)
Trait Implementations
impl From<Feature> for GeoJson[src]
impl From<Feature> for GeoJsonimpl Clone for Feature[src]
impl Clone for Featurefn clone(&self) -> Feature[src]
fn clone(&self) -> FeatureReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Debug for Feature[src]
impl Debug for Featurefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for Feature[src]
impl PartialEq for Featurefn eq(&self, other: &Feature) -> bool[src]
fn eq(&self, other: &Feature) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Feature) -> bool[src]
fn ne(&self, other: &Feature) -> boolThis method tests for !=.
impl<'a> From<&'a Feature> for Map<String, JsonValue>[src]
impl<'a> From<&'a Feature> for Map<String, JsonValue>impl Serialize for Feature[src]
impl Serialize for Featurefn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer, [src]
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer, Serialize this value into the given Serde serializer. Read more
impl<'de> Deserialize<'de> for Feature[src]
impl<'de> Deserialize<'de> for Featurefn deserialize<D>(deserializer: D) -> Result<Feature, D::Error> where
D: Deserializer<'de>, [src]
fn deserialize<D>(deserializer: D) -> Result<Feature, D::Error> where
D: Deserializer<'de>, Deserialize this value from the given Serde deserializer. Read more