Struct topojson::Geometry[][src]

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

Fields

bbox: Option<Bbox>value: Valueproperties: Option<Map<String, JsonValue>>id: Option<JsonValue>foreign_members: Option<Map<String, JsonValue>>

Implementations

impl Geometry[src]

pub fn new(value: Value) -> Self[src]

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

impl Geometry[src]

pub fn from_json_object(
    mut object: Map<String, JsonValue>
) -> Result<Self, Error>
[src]

Trait Implementations

impl Clone for Geometry[src]

impl Debug for Geometry[src]

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

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

impl From<Geometry> for TopoJson[src]

impl PartialEq<Geometry> for Geometry[src]

impl Serialize for Geometry[src]

impl StructuralPartialEq for Geometry[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.