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
bbox: Option<Bbox>
value: Value
foreign_members: Option<Map<String, JsonValue>>
Foreign Members
[RFC7946 § 6] (https://tools.ietf.org/html/rfc7946#section-6)
Methods
impl Geometry[src]
impl Geometrypub fn new(value: Value) -> Self[src]
pub fn new(value: Value) -> SelfReturns a new Geometry with the specified value. bbox and foreign_members will be
set to None.
Trait Implementations
impl From<Geometry> for GeoJson[src]
impl From<Geometry> for GeoJsonimpl Clone for Geometry[src]
impl Clone for Geometryfn clone(&self) -> Geometry[src]
fn clone(&self) -> GeometryReturns 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 Geometry[src]
impl Debug for Geometryfn 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 Geometry[src]
impl PartialEq for Geometryfn eq(&self, other: &Geometry) -> bool[src]
fn eq(&self, other: &Geometry) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Geometry) -> bool[src]
fn ne(&self, other: &Geometry) -> boolThis method tests for !=.
impl<'a> From<&'a Geometry> for Map<String, JsonValue>[src]
impl<'a> From<&'a Geometry> for Map<String, JsonValue>impl Serialize for Geometry[src]
impl Serialize for Geometryfn 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 Geometry[src]
impl<'de> Deserialize<'de> for Geometryfn deserialize<D>(deserializer: D) -> Result<Geometry, D::Error> where
D: Deserializer<'de>, [src]
fn deserialize<D>(deserializer: D) -> Result<Geometry, D::Error> where
D: Deserializer<'de>, Deserialize this value from the given Serde deserializer. Read more