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<'__expr, '__expr2, T> AsExpression<Geography> for &'__expr2 &'__expr GeometryCollection<T>
impl<'__expr, '__expr2, T> AsExpression<Geography> for &'__expr2 &'__expr GeometryCollection<T>
source§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<'__expr, '__expr2, T> AsExpression<Geography> for &'__expr2 &'__expr GeometryContainer<T>
impl<'__expr, '__expr2, T> AsExpression<Geography> for &'__expr2 &'__expr GeometryContainer<T>
source§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<'__expr, '__expr2, T> AsExpression<Geography> for &'__expr2 &'__expr LineString<T>
impl<'__expr, '__expr2, T> AsExpression<Geography> for &'__expr2 &'__expr LineString<T>
source§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<'__expr, '__expr2, T> AsExpression<Geography> for &'__expr2 &'__expr MultiLineString<T>
impl<'__expr, '__expr2, T> AsExpression<Geography> for &'__expr2 &'__expr MultiLineString<T>
source§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<'__expr, '__expr2, T> AsExpression<Geography> for &'__expr2 &'__expr MultiPoint<T>
impl<'__expr, '__expr2, T> AsExpression<Geography> for &'__expr2 &'__expr MultiPoint<T>
source§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<'__expr, '__expr2, T> AsExpression<Geography> for &'__expr2 &'__expr MultiPolygon<T>
impl<'__expr, '__expr2, T> AsExpression<Geography> for &'__expr2 &'__expr MultiPolygon<T>
source§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<'__expr, '__expr2> AsExpression<Geography> for &'__expr2 &'__expr Point
impl<'__expr, '__expr2> AsExpression<Geography> for &'__expr2 &'__expr Point
source§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<'__expr, '__expr2> AsExpression<Geography> for &'__expr2 &'__expr PointM
impl<'__expr, '__expr2> AsExpression<Geography> for &'__expr2 &'__expr PointM
source§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<'__expr, '__expr2> AsExpression<Geography> for &'__expr2 &'__expr PointZ
impl<'__expr, '__expr2> AsExpression<Geography> for &'__expr2 &'__expr PointZ
source§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<'__expr, '__expr2> AsExpression<Geography> for &'__expr2 &'__expr PointZM
impl<'__expr, '__expr2> AsExpression<Geography> for &'__expr2 &'__expr PointZM
source§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<'__expr, '__expr2, T> AsExpression<Geography> for &'__expr2 &'__expr Polygon<T>
impl<'__expr, '__expr2, T> AsExpression<Geography> for &'__expr2 &'__expr Polygon<T>
source§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>
source§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>
source§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>
source§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>
source§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>
source§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>
source§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
source§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
source§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
source§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
source§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>
source§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>
source§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>
source§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>
source§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>
source§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>
source§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>
source§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
source§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
source§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
source§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
source§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>
source§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 Copy for Geography
impl 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<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