Struct diesel_mysql_spatial::data_types::Geometry
source · [−]Expand description
An arbitrary geometry.
MySQL extension: The spatial reference system identifier (SRID) may identify the used coordinate system.
Fields
srid: SRIDgeom: Geometry<f64>Implementations
Trait Implementations
sourceimpl From<BoundingBox> for Geometry
impl From<BoundingBox> for Geometry
sourcefn from(other: BoundingBox) -> Self
fn from(other: BoundingBox) -> Self
Converts to this type from the input type.
sourceimpl From<GeometryCollection> for Geometry
impl From<GeometryCollection> for Geometry
sourcefn from(other: GeometryCollection) -> Self
fn from(other: GeometryCollection) -> Self
Converts to this type from the input type.
sourceimpl From<LineString> for Geometry
impl From<LineString> for Geometry
sourcefn from(other: LineString) -> Self
fn from(other: LineString) -> Self
Converts to this type from the input type.
sourceimpl From<MultiLineString> for Geometry
impl From<MultiLineString> for Geometry
sourcefn from(other: MultiLineString) -> Self
fn from(other: MultiLineString) -> Self
Converts to this type from the input type.
sourceimpl From<MultiPoint> for Geometry
impl From<MultiPoint> for Geometry
sourcefn from(other: MultiPoint) -> Self
fn from(other: MultiPoint) -> Self
Converts to this type from the input type.
sourceimpl From<MultiPolygon> for Geometry
impl From<MultiPolygon> for Geometry
sourcefn from(other: MultiPolygon) -> Self
fn from(other: MultiPolygon) -> Self
Converts to this type from the input type.
sourceimpl FromSql<GeometryCollection, Mysql> for Geometry
impl FromSql<GeometryCollection, Mysql> for Geometry
sourceimpl FromSql<LineString, Mysql> for Geometry
impl FromSql<LineString, Mysql> for Geometry
sourceimpl FromSql<MultiLineString, Mysql> for Geometry
impl FromSql<MultiLineString, Mysql> for Geometry
sourceimpl FromSql<MultiPoint, Mysql> for Geometry
impl FromSql<MultiPoint, Mysql> for Geometry
sourceimpl FromSql<MultiPolygon, Mysql> for Geometry
impl FromSql<MultiPolygon, Mysql> for Geometry
sourceimpl<__ST, __DB> FromSqlRow<__ST, __DB> for Geometry where
__DB: Backend,
Self: FromSql<__ST, __DB>,
impl<__ST, __DB> FromSqlRow<__ST, __DB> for Geometry where
__DB: Backend,
Self: FromSql<__ST, __DB>,
sourcefn build_from_row<R: Row<__DB>>(row: &mut R) -> Result<Self>
fn build_from_row<R: Row<__DB>>(row: &mut R) -> Result<Self>
See the trait documentation.
sourceconst 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_row Read more
sourceimpl<__ST, __DB> Queryable<__ST, __DB> for Geometry where
__DB: Backend,
Self: FromSql<__ST, __DB>,
impl<__ST, __DB> Queryable<__ST, __DB> for Geometry where
__DB: Backend,
Self: FromSql<__ST, __DB>,
sourceimpl TryFrom<Geometry> for LineString
impl TryFrom<Geometry> for LineString
sourceimpl TryFrom<Geometry> for MultiPoint
impl TryFrom<Geometry> for MultiPoint
sourceimpl TryFrom<Geometry> for MultiLineString
impl TryFrom<Geometry> for MultiLineString
sourceimpl TryFrom<Geometry> for MultiPolygon
impl TryFrom<Geometry> for MultiPolygon
sourceimpl TryFrom<Geometry> for GeometryCollection
impl TryFrom<Geometry> for GeometryCollection
impl StructuralPartialEq for Geometry
Auto Trait Implementations
impl RefUnwindSafe for Geometry
impl Send for Geometry
impl Sync for Geometry
impl Unpin for Geometry
impl UnwindSafe for Geometry
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> IntoSql for T
impl<T> IntoSql for T
sourcefn into_sql<T>(self) -> Self::Expression where
Self: AsExpression<T>,
fn into_sql<T>(self) -> Self::Expression where
Self: AsExpression<T>,
Convert self to an expression for Diesel’s query builder. Read more
sourcefn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
Convert &self to an expression for Diesel’s query builder. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more