pub enum GeoLocationGeometry {
Point(GeometryItem<Point>),
LineString(GeometryItem<LineString>),
Polygon(GeometryItem<Polygon>),
MultiPoint(GeometryItem<Vec<Point>>),
MultiLineString(GeometryItem<Vec<LineString>>),
MultiPolygon(GeometryItem<Vec<Polygon>>),
}Expand description
Geometry variants.
Variants§
Point(GeometryItem<Point>)
Points in 2D space.
LineString(GeometryItem<LineString>)
A list of two or more points.
Polygon(GeometryItem<Polygon>)
A collection of linear rings that form a polygon.
MultiPoint(GeometryItem<Vec<Point>>)
A set of multiple points.
MultiLineString(GeometryItem<Vec<LineString>>)
A set of multiple lines.
MultiPolygon(GeometryItem<Vec<Polygon>>)
A set of multiple polygons.
Trait Implementations§
Source§impl Clone for GeoLocationGeometry
impl Clone for GeoLocationGeometry
Source§fn clone(&self) -> GeoLocationGeometry
fn clone(&self) -> GeoLocationGeometry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GeoLocationGeometry
impl Debug for GeoLocationGeometry
Source§impl<'de> Deserialize<'de> for GeoLocationGeometry
impl<'de> Deserialize<'de> for GeoLocationGeometry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for GeoLocationGeometry
impl RefUnwindSafe for GeoLocationGeometry
impl Send for GeoLocationGeometry
impl Sync for GeoLocationGeometry
impl Unpin for GeoLocationGeometry
impl UnwindSafe for GeoLocationGeometry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more