Struct postgis_diesel::sql_types::Geometry
source · 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<'expr2, 'expr, T> AsExpression<Geometry> for &'expr2 &'expr GeometryCollection<T>
impl<'expr2, 'expr, T> AsExpression<Geometry> for &'expr2 &'expr GeometryCollection<T>
§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<'expr2, 'expr, T> AsExpression<Geometry> for &'expr2 &'expr GeometryContainer<T>
impl<'expr2, 'expr, T> AsExpression<Geometry> for &'expr2 &'expr GeometryContainer<T>
§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<'expr2, 'expr, T> AsExpression<Geometry> for &'expr2 &'expr LineString<T>
impl<'expr2, 'expr, T> AsExpression<Geometry> for &'expr2 &'expr LineString<T>
§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<'expr2, 'expr, T> AsExpression<Geometry> for &'expr2 &'expr MultiLineString<T>
impl<'expr2, 'expr, T> AsExpression<Geometry> for &'expr2 &'expr MultiLineString<T>
§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<'expr2, 'expr, T> AsExpression<Geometry> for &'expr2 &'expr MultiPoint<T>
impl<'expr2, 'expr, T> AsExpression<Geometry> for &'expr2 &'expr MultiPoint<T>
§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<'expr2, 'expr, T> AsExpression<Geometry> for &'expr2 &'expr MultiPolygon<T>
impl<'expr2, 'expr, T> AsExpression<Geometry> for &'expr2 &'expr MultiPolygon<T>
§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<'expr2, 'expr> AsExpression<Geometry> for &'expr2 &'expr Point
impl<'expr2, 'expr> AsExpression<Geometry> for &'expr2 &'expr Point
§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<'expr2, 'expr> AsExpression<Geometry> for &'expr2 &'expr PointM
impl<'expr2, 'expr> AsExpression<Geometry> for &'expr2 &'expr PointM
§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<'expr2, 'expr> AsExpression<Geometry> for &'expr2 &'expr PointZ
impl<'expr2, 'expr> AsExpression<Geometry> for &'expr2 &'expr PointZ
§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<'expr2, 'expr> AsExpression<Geometry> for &'expr2 &'expr PointZM
impl<'expr2, 'expr> AsExpression<Geometry> for &'expr2 &'expr PointZM
§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<'expr2, 'expr, T> AsExpression<Geometry> for &'expr2 &'expr Polygon<T>
impl<'expr2, 'expr, T> AsExpression<Geometry> for &'expr2 &'expr Polygon<T>
§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>
§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>
§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>
§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>
§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>
§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>
§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
§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
§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
§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
§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>
§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>
§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>
§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>
§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>
§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>
§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>
§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
§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
§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
§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
§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>
§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 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<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
§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