Struct geojson::Geometry[][src]

pub struct Geometry {
    pub bbox: Option<Bbox>,
    pub value: Value,
    pub foreign_members: Option<Map<String, JsonValue>>,
}

Geometry Objects

[GeoJSON Format Specification § 3.1] (https://tools.ietf.org/html/rfc7946#section-3.1)

Fields

Foreign Members

[RFC7946 § 6] (https://tools.ietf.org/html/rfc7946#section-6)

Methods

impl Geometry
[src]

Returns a new Geometry with the specified value. bbox and foreign_members will be set to None.

Trait Implementations

impl From<Geometry> for GeoJson
[src]

Performs the conversion.

impl Clone for Geometry
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Geometry
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Geometry
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'a> From<&'a Geometry> for Map<String, JsonValue>
[src]

Performs the conversion.

impl Serialize for Geometry
[src]

Serialize this value into the given Serde serializer. Read more

impl<'de> Deserialize<'de> for Geometry
[src]

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations

impl Send for Geometry

impl Sync for Geometry