Struct postgis_diesel::sql_types::Geography
source · pub struct Geography;
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::*;
geography_example (id) {
id -> Int4,
point -> Geography,
}
}
Trait Implementations§
source§impl<'expr2, 'expr, T> AsExpression<Geography> for &'expr2 &'expr GeometryCollection<T>
impl<'expr2, 'expr, T> AsExpression<Geography> for &'expr2 &'expr GeometryCollection<T>
§type Expression = Bound<Geography, &'expr2 &'expr GeometryCollection<T>>
type Expression = Bound<Geography, &'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<Geography> for &'expr2 &'expr GeometryContainer<T>
impl<'expr2, 'expr, T> AsExpression<Geography> for &'expr2 &'expr GeometryContainer<T>
§type Expression = Bound<Geography, &'expr2 &'expr GeometryContainer<T>>
type Expression = Bound<Geography, &'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<Geography> for &'expr2 &'expr LineString<T>
impl<'expr2, 'expr, T> AsExpression<Geography> for &'expr2 &'expr LineString<T>
§type Expression = Bound<Geography, &'expr2 &'expr LineString<T>>
type Expression = Bound<Geography, &'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<Geography> for &'expr2 &'expr MultiLineString<T>
impl<'expr2, 'expr, T> AsExpression<Geography> for &'expr2 &'expr MultiLineString<T>
§type Expression = Bound<Geography, &'expr2 &'expr MultiLineString<T>>
type Expression = Bound<Geography, &'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<Geography> for &'expr2 &'expr MultiPoint<T>
impl<'expr2, 'expr, T> AsExpression<Geography> for &'expr2 &'expr MultiPoint<T>
§type Expression = Bound<Geography, &'expr2 &'expr MultiPoint<T>>
type Expression = Bound<Geography, &'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<Geography> for &'expr2 &'expr MultiPolygon<T>
impl<'expr2, 'expr, T> AsExpression<Geography> for &'expr2 &'expr MultiPolygon<T>
§type Expression = Bound<Geography, &'expr2 &'expr MultiPolygon<T>>
type Expression = Bound<Geography, &'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<Geography> for &'expr2 &'expr Point
impl<'expr2, 'expr> AsExpression<Geography> for &'expr2 &'expr Point
§type Expression = Bound<Geography, &'expr2 &'expr Point>
type Expression = Bound<Geography, &'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<Geography> for &'expr2 &'expr PointM
impl<'expr2, 'expr> AsExpression<Geography> for &'expr2 &'expr PointM
§type Expression = Bound<Geography, &'expr2 &'expr PointM>
type Expression = Bound<Geography, &'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<Geography> for &'expr2 &'expr PointZ
impl<'expr2, 'expr> AsExpression<Geography> for &'expr2 &'expr PointZ
§type Expression = Bound<Geography, &'expr2 &'expr PointZ>
type Expression = Bound<Geography, &'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<Geography> for &'expr2 &'expr PointZM
impl<'expr2, 'expr> AsExpression<Geography> for &'expr2 &'expr PointZM
§type Expression = Bound<Geography, &'expr2 &'expr PointZM>
type Expression = Bound<Geography, &'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<Geography> for &'expr2 &'expr Polygon<T>
impl<'expr2, 'expr, T> AsExpression<Geography> for &'expr2 &'expr Polygon<T>
§type Expression = Bound<Geography, &'expr2 &'expr Polygon<T>>
type Expression = Bound<Geography, &'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<Geography> for &'expr GeometryCollection<T>
impl<'expr, T> AsExpression<Geography> for &'expr GeometryCollection<T>
§type Expression = Bound<Geography, &'expr GeometryCollection<T>>
type Expression = Bound<Geography, &'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<Geography> for &'expr GeometryContainer<T>
impl<'expr, T> AsExpression<Geography> for &'expr GeometryContainer<T>
§type Expression = Bound<Geography, &'expr GeometryContainer<T>>
type Expression = Bound<Geography, &'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<Geography> for &'expr LineString<T>
impl<'expr, T> AsExpression<Geography> for &'expr LineString<T>
§type Expression = Bound<Geography, &'expr LineString<T>>
type Expression = Bound<Geography, &'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<Geography> for &'expr MultiLineString<T>
impl<'expr, T> AsExpression<Geography> for &'expr MultiLineString<T>
§type Expression = Bound<Geography, &'expr MultiLineString<T>>
type Expression = Bound<Geography, &'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<Geography> for &'expr MultiPoint<T>
impl<'expr, T> AsExpression<Geography> for &'expr MultiPoint<T>
§type Expression = Bound<Geography, &'expr MultiPoint<T>>
type Expression = Bound<Geography, &'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<Geography> for &'expr MultiPolygon<T>
impl<'expr, T> AsExpression<Geography> for &'expr MultiPolygon<T>
§type Expression = Bound<Geography, &'expr MultiPolygon<T>>
type Expression = Bound<Geography, &'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<Geography> for &'expr Point
impl<'expr> AsExpression<Geography> for &'expr Point
§type Expression = Bound<Geography, &'expr Point>
type Expression = Bound<Geography, &'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<Geography> for &'expr PointM
impl<'expr> AsExpression<Geography> for &'expr PointM
§type Expression = Bound<Geography, &'expr PointM>
type Expression = Bound<Geography, &'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<Geography> for &'expr PointZ
impl<'expr> AsExpression<Geography> for &'expr PointZ
§type Expression = Bound<Geography, &'expr PointZ>
type Expression = Bound<Geography, &'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<Geography> for &'expr PointZM
impl<'expr> AsExpression<Geography> for &'expr PointZM
§type Expression = Bound<Geography, &'expr PointZM>
type Expression = Bound<Geography, &'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<Geography> for &'expr Polygon<T>
impl<'expr, T> AsExpression<Geography> for &'expr Polygon<T>
§type Expression = Bound<Geography, &'expr Polygon<T>>
type Expression = Bound<Geography, &'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<Geography> for GeometryCollection<T>
impl<T> AsExpression<Geography> for GeometryCollection<T>
§type Expression = Bound<Geography, GeometryCollection<T>>
type Expression = Bound<Geography, 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<Geography> for GeometryContainer<T>
impl<T> AsExpression<Geography> for GeometryContainer<T>
§type Expression = Bound<Geography, GeometryContainer<T>>
type Expression = Bound<Geography, 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<Geography> for LineString<T>
impl<T> AsExpression<Geography> for LineString<T>
§type Expression = Bound<Geography, LineString<T>>
type Expression = Bound<Geography, 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<Geography> for MultiLineString<T>
impl<T> AsExpression<Geography> for MultiLineString<T>
§type Expression = Bound<Geography, MultiLineString<T>>
type Expression = Bound<Geography, 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<Geography> for MultiPoint<T>
impl<T> AsExpression<Geography> for MultiPoint<T>
§type Expression = Bound<Geography, MultiPoint<T>>
type Expression = Bound<Geography, 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<Geography> for MultiPolygon<T>
impl<T> AsExpression<Geography> for MultiPolygon<T>
§type Expression = Bound<Geography, MultiPolygon<T>>
type Expression = Bound<Geography, 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<Geography> for Point
impl AsExpression<Geography> for Point
§type Expression = Bound<Geography, Point>
type Expression = Bound<Geography, Point>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl AsExpression<Geography> for PointM
impl AsExpression<Geography> for PointM
§type Expression = Bound<Geography, PointM>
type Expression = Bound<Geography, PointM>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl AsExpression<Geography> for PointZ
impl AsExpression<Geography> for PointZ
§type Expression = Bound<Geography, PointZ>
type Expression = Bound<Geography, PointZ>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl AsExpression<Geography> for PointZM
impl AsExpression<Geography> for PointZM
§type Expression = Bound<Geography, PointZM>
type Expression = Bound<Geography, 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<Geography> for Polygon<T>
impl<T> AsExpression<Geography> for Polygon<T>
§type Expression = Bound<Geography, Polygon<T>>
type Expression = Bound<Geography, 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<Geography> for Pg
impl HasSqlType<Geography> 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 Geography
impl QueryId for Geography
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 Geography
impl SingleValue for Geography
Auto Trait Implementations§
impl Freeze for Geography
impl RefUnwindSafe for Geography
impl Send for Geography
impl Sync for Geography
impl Unpin for Geography
impl UnwindSafe for Geography
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