pub struct Geometry {
pub srid: SRID,
pub geom: Geometry<f64>,
}Expand description
An arbitrary geometry.
MySQL extension: The spatial reference system identifier (SRID) may identify the used coordinate system.
Fields§
§srid: SRID§geom: Geometry<f64>Implementations§
Trait Implementations§
Source§impl From<BoundingBox> for Geometry
impl From<BoundingBox> for Geometry
Source§fn from(other: BoundingBox) -> Self
fn from(other: BoundingBox) -> Self
Converts to this type from the input type.
Source§impl From<GeometryCollection> for Geometry
impl From<GeometryCollection> for Geometry
Source§fn from(other: GeometryCollection) -> Self
fn from(other: GeometryCollection) -> Self
Converts to this type from the input type.
Source§impl From<LineString> for Geometry
impl From<LineString> for Geometry
Source§fn from(other: LineString) -> Self
fn from(other: LineString) -> Self
Converts to this type from the input type.
Source§impl From<MultiLineString> for Geometry
impl From<MultiLineString> for Geometry
Source§fn from(other: MultiLineString) -> Self
fn from(other: MultiLineString) -> Self
Converts to this type from the input type.
Source§impl From<MultiPoint> for Geometry
impl From<MultiPoint> for Geometry
Source§fn from(other: MultiPoint) -> Self
fn from(other: MultiPoint) -> Self
Converts to this type from the input type.
Source§impl From<MultiPolygon> for Geometry
impl From<MultiPolygon> for Geometry
Source§fn from(other: MultiPolygon) -> Self
fn from(other: MultiPolygon) -> Self
Converts to this type from the input type.
Source§impl<__ST, __DB> FromSqlRow<__ST, __DB> for Geometry
impl<__ST, __DB> FromSqlRow<__ST, __DB> for Geometry
Source§const FIELDS_NEEDED: usize = 1usize
const FIELDS_NEEDED: usize = 1usize
The number of fields that this type will consume. Must be equal to
the number of times you would call
row.take() in build_from_rowSource§impl TryFrom<Geometry> for GeometryCollection
impl TryFrom<Geometry> for GeometryCollection
Source§impl TryFrom<Geometry> for LineString
impl TryFrom<Geometry> for LineString
Source§impl TryFrom<Geometry> for MultiLineString
impl TryFrom<Geometry> for MultiLineString
Source§impl TryFrom<Geometry> for MultiPoint
impl TryFrom<Geometry> for MultiPoint
Source§impl TryFrom<Geometry> for MultiPolygon
impl TryFrom<Geometry> for MultiPolygon
impl StructuralPartialEq for Geometry
Auto Trait Implementations§
impl Freeze for Geometry
impl RefUnwindSafe for Geometry
impl Send for Geometry
impl Sync for Geometry
impl Unpin for Geometry
impl UnwindSafe for Geometry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoSql for T
impl<T> IntoSql for T
Source§fn into_sql<T>(self) -> Self::Expressionwhere
Self: Sized + AsExpression<T>,
fn into_sql<T>(self) -> Self::Expressionwhere
Self: Sized + AsExpression<T>,
Convert
self to an expression for Diesel’s query builder. Read moreSource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
Convert
&self to an expression for Diesel’s query builder. Read more