Struct postgis_diesel::sql_types::Geometry
source · [−]pub struct Geometry;
Expand description
SQL types which may be used in table definition.
#[macro_use] extern crate diesel;
table! {
use postgis_diesel::sql_types::*;
use diesel::sql_types::*;
geometry_example (id) {
id -> Int4,
point -> Nullable<Geometry>,
linestring -> Geometry,
}
}
Trait Implementations
sourceimpl<'expr, T> AsExpression<Geometry> for &'expr PointC<T>
impl<'expr, T> AsExpression<Geometry> for &'expr PointC<T>
type Expression = Bound<Geometry, Self>
type Expression = Bound<Geometry, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'expr2, 'expr, T> AsExpression<Geometry> for &'expr2 &'expr PointC<T>
impl<'expr2, 'expr, T> AsExpression<Geometry> for &'expr2 &'expr PointC<T>
type Expression = Bound<Geometry, Self>
type Expression = Bound<Geometry, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'expr2, 'expr, T> AsExpression<Geometry> for &'expr2 &'expr MultiPointC<T>
impl<'expr2, 'expr, T> AsExpression<Geometry> for &'expr2 &'expr MultiPointC<T>
type Expression = Bound<Geometry, Self>
type Expression = Bound<Geometry, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<T> AsExpression<Geometry> for MultiPointC<T>
impl<T> AsExpression<Geometry> for MultiPointC<T>
type Expression = Bound<Geometry, Self>
type Expression = Bound<Geometry, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'expr, T> AsExpression<Geometry> for &'expr MultiLineStringC<T>
impl<'expr, T> AsExpression<Geometry> for &'expr MultiLineStringC<T>
type Expression = Bound<Geometry, Self>
type Expression = Bound<Geometry, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'expr2, 'expr, T> AsExpression<Geometry> for &'expr2 &'expr MultiLineStringC<T>
impl<'expr2, 'expr, T> AsExpression<Geometry> for &'expr2 &'expr MultiLineStringC<T>
type Expression = Bound<Geometry, Self>
type Expression = Bound<Geometry, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<T> AsExpression<Geometry> for MultiLineStringC<T>
impl<T> AsExpression<Geometry> for MultiLineStringC<T>
type Expression = Bound<Geometry, Self>
type Expression = Bound<Geometry, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'expr, T> AsExpression<Geometry> for &'expr MultiPolygonC<T>
impl<'expr, T> AsExpression<Geometry> for &'expr MultiPolygonC<T>
type Expression = Bound<Geometry, Self>
type Expression = Bound<Geometry, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'expr2, 'expr, T> AsExpression<Geometry> for &'expr2 &'expr MultiPolygonC<T>
impl<'expr2, 'expr, T> AsExpression<Geometry> for &'expr2 &'expr MultiPolygonC<T>
type Expression = Bound<Geometry, Self>
type Expression = Bound<Geometry, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<T> AsExpression<Geometry> for MultiPolygonC<T>
impl<T> AsExpression<Geometry> for MultiPolygonC<T>
type Expression = Bound<Geometry, Self>
type Expression = Bound<Geometry, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'expr, T> AsExpression<Geometry> for &'expr GeometryCollectionC<T>
impl<'expr, T> AsExpression<Geometry> for &'expr GeometryCollectionC<T>
type Expression = Bound<Geometry, Self>
type Expression = Bound<Geometry, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'expr2, 'expr, T> AsExpression<Geometry> for &'expr2 &'expr GeometryCollectionC<T>
impl<'expr2, 'expr, T> AsExpression<Geometry> for &'expr2 &'expr GeometryCollectionC<T>
type Expression = Bound<Geometry, Self>
type Expression = Bound<Geometry, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<T> AsExpression<Geometry> for PointC<T>
impl<T> AsExpression<Geometry> for PointC<T>
type Expression = Bound<Geometry, Self>
type Expression = Bound<Geometry, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<T> AsExpression<Geometry> for GeometryCollectionC<T>
impl<T> AsExpression<Geometry> for GeometryCollectionC<T>
type Expression = Bound<Geometry, Self>
type Expression = Bound<Geometry, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'expr, T> AsExpression<Geometry> for &'expr LineStringC<T>
impl<'expr, T> AsExpression<Geometry> for &'expr LineStringC<T>
type Expression = Bound<Geometry, Self>
type Expression = Bound<Geometry, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'expr2, 'expr, T> AsExpression<Geometry> for &'expr2 &'expr LineStringC<T>
impl<'expr2, 'expr, T> AsExpression<Geometry> for &'expr2 &'expr LineStringC<T>
type Expression = Bound<Geometry, Self>
type Expression = Bound<Geometry, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<T> AsExpression<Geometry> for LineStringC<T>
impl<T> AsExpression<Geometry> for LineStringC<T>
type Expression = Bound<Geometry, Self>
type Expression = Bound<Geometry, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'expr, T> AsExpression<Geometry> for &'expr PolygonC<T>
impl<'expr, T> AsExpression<Geometry> for &'expr PolygonC<T>
type Expression = Bound<Geometry, Self>
type Expression = Bound<Geometry, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'expr2, 'expr, T> AsExpression<Geometry> for &'expr2 &'expr PolygonC<T>
impl<'expr2, 'expr, T> AsExpression<Geometry> for &'expr2 &'expr PolygonC<T>
type Expression = Bound<Geometry, Self>
type Expression = Bound<Geometry, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<T> AsExpression<Geometry> for PolygonC<T>
impl<T> AsExpression<Geometry> for PolygonC<T>
type Expression = Bound<Geometry, Self>
type Expression = Bound<Geometry, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'expr, T> AsExpression<Geometry> for &'expr MultiPointC<T>
impl<'expr, T> AsExpression<Geometry> for &'expr MultiPointC<T>
type Expression = Bound<Geometry, Self>
type Expression = Bound<Geometry, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<P> FromSql<Geometry, Pg> for LineStringC<LineStringT<P>> where
P: Point + EwkbRead + Debug,
impl<P> FromSql<Geometry, Pg> for LineStringC<LineStringT<P>> where
P: Point + EwkbRead + Debug,
sourceimpl<P> FromSql<Geometry, Pg> for MultiPointC<MultiPointT<P>> where
P: Point + EwkbRead + Debug,
impl<P> FromSql<Geometry, Pg> for MultiPointC<MultiPointT<P>> where
P: Point + EwkbRead + Debug,
sourceimpl<P> FromSql<Geometry, Pg> for MultiLineStringC<MultiLineStringT<P>> where
P: Point + EwkbRead + Debug,
impl<P> FromSql<Geometry, Pg> for MultiLineStringC<MultiLineStringT<P>> where
P: Point + EwkbRead + Debug,
sourceimpl<P> FromSql<Geometry, Pg> for MultiPolygonC<MultiPolygonT<P>> where
P: Point + EwkbRead + Debug,
impl<P> FromSql<Geometry, Pg> for MultiPolygonC<MultiPolygonT<P>> where
P: Point + EwkbRead + Debug,
sourceimpl<P> FromSql<Geometry, Pg> for GeometryCollectionC<GeometryCollectionT<P>> where
P: Point + EwkbRead + Debug,
impl<P> FromSql<Geometry, Pg> for GeometryCollectionC<GeometryCollectionT<P>> where
P: Point + EwkbRead + Debug,
sourceimpl HasSqlType<Geometry> for Pg
impl HasSqlType<Geometry> for Pg
sourcefn metadata(lookup: &PgMetadataLookup) -> PgTypeMetadata
fn metadata(lookup: &PgMetadataLookup) -> PgTypeMetadata
Fetch the metadata for the given type Read more
sourceimpl QueryId for Geometry
impl QueryId for Geometry
sourceconst HAS_STATIC_QUERY_ID: bool
const HAS_STATIC_QUERY_ID: bool
Can the SQL generated by Self
be uniquely identified by its type? Read more
sourceimpl<P> ToSql<Geometry, Pg> for PolygonC<PolygonT<P>> where
P: Point + for<'a> AsEwkbPoint<'a> + EwkbRead + Debug,
impl<P> ToSql<Geometry, Pg> for PolygonC<PolygonT<P>> where
P: Point + for<'a> AsEwkbPoint<'a> + EwkbRead + Debug,
sourceimpl<P> ToSql<Geometry, Pg> for LineStringC<LineStringT<P>> where
P: Point + for<'a> AsEwkbPoint<'a> + EwkbRead + Debug,
impl<P> ToSql<Geometry, Pg> for LineStringC<LineStringT<P>> where
P: Point + for<'a> AsEwkbPoint<'a> + EwkbRead + Debug,
sourceimpl<P> ToSql<Geometry, Pg> for MultiPolygonC<MultiPolygonT<P>> where
P: Point + for<'a> AsEwkbPoint<'a> + EwkbRead + Debug,
impl<P> ToSql<Geometry, Pg> for MultiPolygonC<MultiPolygonT<P>> where
P: Point + for<'a> AsEwkbPoint<'a> + EwkbRead + Debug,
sourceimpl<P> ToSql<Geometry, Pg> for GeometryCollectionC<GeometryCollectionT<P>> where
P: Point + for<'a> AsEwkbPoint<'a> + EwkbRead + Debug,
impl<P> ToSql<Geometry, Pg> for GeometryCollectionC<GeometryCollectionT<P>> where
P: Point + for<'a> AsEwkbPoint<'a> + EwkbRead + Debug,
impl NotNull for Geometry
impl SingleValue 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 · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> IntoNullable for T where
T: NotNull,
impl<T> IntoNullable for T where
T: NotNull,
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