Struct postgis_diesel::PolygonC
source · [−]pub struct PolygonC<T> {
pub v: T,
}
Expand description
Container for a postgis::ewkb::PolygonT
, use that structure in Insertable
or Queryable
struct.
#[macro_use] extern crate diesel;
use postgis_diesel::PolygonC;
use postgis::ewkb::{Point, PolygonT};
#[derive(Queryable)]
struct PointExample {
id: i32,
point: PolygonC<PolygonT<Point>>,
}
Fields
v: T
Trait Implementations
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<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<Nullable<Geometry>> for &'expr PolygonC<T>
impl<'expr, T> AsExpression<Nullable<Geometry>> for &'expr PolygonC<T>
type Expression = Bound<Nullable<Geometry>, Self>
type Expression = Bound<Nullable<Geometry>, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<T> AsExpression<Nullable<Geometry>> for PolygonC<T>
impl<T> AsExpression<Nullable<Geometry>> for PolygonC<T>
type Expression = Bound<Nullable<Geometry>, Self>
type Expression = Bound<Nullable<Geometry>, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<T, __ST, __DB> FromSqlRow<__ST, __DB> for PolygonC<T> where
__DB: Backend,
Self: FromSql<__ST, __DB>,
impl<T, __ST, __DB> FromSqlRow<__ST, __DB> for PolygonC<T> where
__DB: Backend,
Self: FromSql<__ST, __DB>,
sourcefn build_from_row<R: Row<__DB>>(row: &mut R) -> Result<Self>
fn build_from_row<R: Row<__DB>>(row: &mut R) -> Result<Self>
See the trait documentation.
sourceconst FIELDS_NEEDED: usize
const FIELDS_NEEDED: usize
The number of fields that this type will consume. Must be equal to
the number of times you would call row.take()
in build_from_row
Read more
sourceimpl<T, __ST, __DB> Queryable<__ST, __DB> for PolygonC<T> where
__DB: Backend,
Self: FromSql<__ST, __DB>,
impl<T, __ST, __DB> Queryable<__ST, __DB> for PolygonC<T> where
__DB: Backend,
Self: FromSql<__ST, __DB>,
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<T, __DB> ToSql<Nullable<Geometry>, __DB> for PolygonC<T> where
__DB: Backend,
Self: ToSql<Geometry, __DB>,
impl<T, __DB> ToSql<Nullable<Geometry>, __DB> for PolygonC<T> where
__DB: Backend,
Self: ToSql<Geometry, __DB>,
impl<T> StructuralPartialEq for PolygonC<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for PolygonC<T> where
T: RefUnwindSafe,
impl<T> Send for PolygonC<T> where
T: Send,
impl<T> Sync for PolygonC<T> where
T: Sync,
impl<T> Unpin for PolygonC<T> where
T: Unpin,
impl<T> UnwindSafe for PolygonC<T> where
T: UnwindSafe,
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> 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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more