pub struct Geometry;
Expand description
SQL type 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§
source§impl<'__expr, '__expr2, T> AsExpression<Geometry> for &'__expr2 &'__expr GeometryCollection<T>
impl<'__expr, '__expr2, T> AsExpression<Geometry> for &'__expr2 &'__expr GeometryCollection<T>
source§type Expression = Bound<Geometry, &'__expr2 &'__expr GeometryCollection<T>>
type Expression = Bound<Geometry, &'__expr2 &'__expr GeometryCollection<T>>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<'__expr, '__expr2, T> AsExpression<Geometry> for &'__expr2 &'__expr GeometryContainer<T>
impl<'__expr, '__expr2, T> AsExpression<Geometry> for &'__expr2 &'__expr GeometryContainer<T>
source§type Expression = Bound<Geometry, &'__expr2 &'__expr GeometryContainer<T>>
type Expression = Bound<Geometry, &'__expr2 &'__expr GeometryContainer<T>>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<'__expr, '__expr2, T> AsExpression<Geometry> for &'__expr2 &'__expr LineString<T>
impl<'__expr, '__expr2, T> AsExpression<Geometry> for &'__expr2 &'__expr LineString<T>
source§type Expression = Bound<Geometry, &'__expr2 &'__expr LineString<T>>
type Expression = Bound<Geometry, &'__expr2 &'__expr LineString<T>>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<'__expr, '__expr2, T> AsExpression<Geometry> for &'__expr2 &'__expr MultiLineString<T>
impl<'__expr, '__expr2, T> AsExpression<Geometry> for &'__expr2 &'__expr MultiLineString<T>
source§type Expression = Bound<Geometry, &'__expr2 &'__expr MultiLineString<T>>
type Expression = Bound<Geometry, &'__expr2 &'__expr MultiLineString<T>>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<'__expr, '__expr2, T> AsExpression<Geometry> for &'__expr2 &'__expr MultiPoint<T>
impl<'__expr, '__expr2, T> AsExpression<Geometry> for &'__expr2 &'__expr MultiPoint<T>
source§type Expression = Bound<Geometry, &'__expr2 &'__expr MultiPoint<T>>
type Expression = Bound<Geometry, &'__expr2 &'__expr MultiPoint<T>>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<'__expr, '__expr2, T> AsExpression<Geometry> for &'__expr2 &'__expr MultiPolygon<T>
impl<'__expr, '__expr2, T> AsExpression<Geometry> for &'__expr2 &'__expr MultiPolygon<T>
source§type Expression = Bound<Geometry, &'__expr2 &'__expr MultiPolygon<T>>
type Expression = Bound<Geometry, &'__expr2 &'__expr MultiPolygon<T>>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<'__expr, '__expr2> AsExpression<Geometry> for &'__expr2 &'__expr Point
impl<'__expr, '__expr2> AsExpression<Geometry> for &'__expr2 &'__expr Point
source§type Expression = Bound<Geometry, &'__expr2 &'__expr Point>
type Expression = Bound<Geometry, &'__expr2 &'__expr Point>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<'__expr, '__expr2> AsExpression<Geometry> for &'__expr2 &'__expr PointM
impl<'__expr, '__expr2> AsExpression<Geometry> for &'__expr2 &'__expr PointM
source§type Expression = Bound<Geometry, &'__expr2 &'__expr PointM>
type Expression = Bound<Geometry, &'__expr2 &'__expr PointM>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<'__expr, '__expr2> AsExpression<Geometry> for &'__expr2 &'__expr PointZ
impl<'__expr, '__expr2> AsExpression<Geometry> for &'__expr2 &'__expr PointZ
source§type Expression = Bound<Geometry, &'__expr2 &'__expr PointZ>
type Expression = Bound<Geometry, &'__expr2 &'__expr PointZ>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<'__expr, '__expr2> AsExpression<Geometry> for &'__expr2 &'__expr PointZM
impl<'__expr, '__expr2> AsExpression<Geometry> for &'__expr2 &'__expr PointZM
source§type Expression = Bound<Geometry, &'__expr2 &'__expr PointZM>
type Expression = Bound<Geometry, &'__expr2 &'__expr PointZM>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<'__expr, '__expr2, T> AsExpression<Geometry> for &'__expr2 &'__expr Polygon<T>
impl<'__expr, '__expr2, T> AsExpression<Geometry> for &'__expr2 &'__expr Polygon<T>
source§type Expression = Bound<Geometry, &'__expr2 &'__expr Polygon<T>>
type Expression = Bound<Geometry, &'__expr2 &'__expr Polygon<T>>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<'__expr, T> AsExpression<Geometry> for &'__expr GeometryCollection<T>
impl<'__expr, T> AsExpression<Geometry> for &'__expr GeometryCollection<T>
source§type Expression = Bound<Geometry, &'__expr GeometryCollection<T>>
type Expression = Bound<Geometry, &'__expr GeometryCollection<T>>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<'__expr, T> AsExpression<Geometry> for &'__expr GeometryContainer<T>
impl<'__expr, T> AsExpression<Geometry> for &'__expr GeometryContainer<T>
source§type Expression = Bound<Geometry, &'__expr GeometryContainer<T>>
type Expression = Bound<Geometry, &'__expr GeometryContainer<T>>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<'__expr, T> AsExpression<Geometry> for &'__expr LineString<T>
impl<'__expr, T> AsExpression<Geometry> for &'__expr LineString<T>
source§type Expression = Bound<Geometry, &'__expr LineString<T>>
type Expression = Bound<Geometry, &'__expr LineString<T>>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<'__expr, T> AsExpression<Geometry> for &'__expr MultiLineString<T>
impl<'__expr, T> AsExpression<Geometry> for &'__expr MultiLineString<T>
source§type Expression = Bound<Geometry, &'__expr MultiLineString<T>>
type Expression = Bound<Geometry, &'__expr MultiLineString<T>>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<'__expr, T> AsExpression<Geometry> for &'__expr MultiPoint<T>
impl<'__expr, T> AsExpression<Geometry> for &'__expr MultiPoint<T>
source§type Expression = Bound<Geometry, &'__expr MultiPoint<T>>
type Expression = Bound<Geometry, &'__expr MultiPoint<T>>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<'__expr, T> AsExpression<Geometry> for &'__expr MultiPolygon<T>
impl<'__expr, T> AsExpression<Geometry> for &'__expr MultiPolygon<T>
source§type Expression = Bound<Geometry, &'__expr MultiPolygon<T>>
type Expression = Bound<Geometry, &'__expr MultiPolygon<T>>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<'__expr> AsExpression<Geometry> for &'__expr Point
impl<'__expr> AsExpression<Geometry> for &'__expr Point
source§type Expression = Bound<Geometry, &'__expr Point>
type Expression = Bound<Geometry, &'__expr Point>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<'__expr> AsExpression<Geometry> for &'__expr PointM
impl<'__expr> AsExpression<Geometry> for &'__expr PointM
source§type Expression = Bound<Geometry, &'__expr PointM>
type Expression = Bound<Geometry, &'__expr PointM>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<'__expr> AsExpression<Geometry> for &'__expr PointZ
impl<'__expr> AsExpression<Geometry> for &'__expr PointZ
source§type Expression = Bound<Geometry, &'__expr PointZ>
type Expression = Bound<Geometry, &'__expr PointZ>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<'__expr> AsExpression<Geometry> for &'__expr PointZM
impl<'__expr> AsExpression<Geometry> for &'__expr PointZM
source§type Expression = Bound<Geometry, &'__expr PointZM>
type Expression = Bound<Geometry, &'__expr PointZM>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<'__expr, T> AsExpression<Geometry> for &'__expr Polygon<T>
impl<'__expr, T> AsExpression<Geometry> for &'__expr Polygon<T>
source§type Expression = Bound<Geometry, &'__expr Polygon<T>>
type Expression = Bound<Geometry, &'__expr Polygon<T>>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<T> AsExpression<Geometry> for GeometryCollection<T>
impl<T> AsExpression<Geometry> for GeometryCollection<T>
source§type Expression = Bound<Geometry, GeometryCollection<T>>
type Expression = Bound<Geometry, GeometryCollection<T>>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<T> AsExpression<Geometry> for GeometryContainer<T>
impl<T> AsExpression<Geometry> for GeometryContainer<T>
source§type Expression = Bound<Geometry, GeometryContainer<T>>
type Expression = Bound<Geometry, GeometryContainer<T>>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<T> AsExpression<Geometry> for LineString<T>
impl<T> AsExpression<Geometry> for LineString<T>
source§type Expression = Bound<Geometry, LineString<T>>
type Expression = Bound<Geometry, LineString<T>>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<T> AsExpression<Geometry> for MultiLineString<T>
impl<T> AsExpression<Geometry> for MultiLineString<T>
source§type Expression = Bound<Geometry, MultiLineString<T>>
type Expression = Bound<Geometry, MultiLineString<T>>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<T> AsExpression<Geometry> for MultiPoint<T>
impl<T> AsExpression<Geometry> for MultiPoint<T>
source§type Expression = Bound<Geometry, MultiPoint<T>>
type Expression = Bound<Geometry, MultiPoint<T>>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<T> AsExpression<Geometry> for MultiPolygon<T>
impl<T> AsExpression<Geometry> for MultiPolygon<T>
source§type Expression = Bound<Geometry, MultiPolygon<T>>
type Expression = Bound<Geometry, MultiPolygon<T>>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl AsExpression<Geometry> for Point
impl AsExpression<Geometry> for Point
source§type Expression = Bound<Geometry, Point>
type Expression = Bound<Geometry, Point>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl AsExpression<Geometry> for PointM
impl AsExpression<Geometry> for PointM
source§type Expression = Bound<Geometry, PointM>
type Expression = Bound<Geometry, PointM>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl AsExpression<Geometry> for PointZ
impl AsExpression<Geometry> for PointZ
source§type Expression = Bound<Geometry, PointZ>
type Expression = Bound<Geometry, PointZ>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl AsExpression<Geometry> for PointZM
impl AsExpression<Geometry> for PointZM
source§type Expression = Bound<Geometry, PointZM>
type Expression = Bound<Geometry, PointZM>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<T> AsExpression<Geometry> for Polygon<T>
impl<T> AsExpression<Geometry> for Polygon<T>
source§type Expression = Bound<Geometry, Polygon<T>>
type Expression = Bound<Geometry, Polygon<T>>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl HasSqlType<Geometry> for Pg
impl HasSqlType<Geometry> for Pg
source§fn metadata(lookup: &mut Self::MetadataLookup) -> PgTypeMetadata
fn metadata(lookup: &mut Self::MetadataLookup) -> PgTypeMetadata
Fetch the metadata for the given type Read more
source§impl QueryId for Geometry
impl QueryId for Geometry
source§const HAS_STATIC_QUERY_ID: bool = true
const HAS_STATIC_QUERY_ID: bool = true
Can the SQL generated by
Self
be uniquely identified by its type? Read moreimpl Copy for Geometry
impl GeoType for Geometry
impl SingleValue 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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<ST, U, DB> CompatibleType<U, DB> for ST
impl<ST, U, DB> CompatibleType<U, DB> for ST
source§impl<T> IntoNotNullable for T
impl<T> IntoNotNullable for T
source§type NotNullable = T
type NotNullable = T
The not nullable representation of this type. Read more
source§impl<T> IntoNullable for T
impl<T> IntoNullable for T
source§impl<T> IntoSql for T
impl<T> IntoSql for T
source§fn into_sql<T>(self) -> Self::Expression
fn into_sql<T>(self) -> Self::Expression
Convert
self
to an expression for Diesel’s query builder. Read moresource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
Convert
&self
to an expression for Diesel’s query builder. Read more