Struct postgis_diesel::GeometryCollectionC
source · [−]pub struct GeometryCollectionC<T> {
pub v: T,
}
Expand description
Container for a postgis::ewkb::GeometryCollectionT
, use that structure in Insertable
or Queryable
struct.
#[macro_use] extern crate diesel;
use postgis_diesel::GeometryCollectionC;
use postgis::ewkb::{Point, GeometryCollectionT};
#[derive(Queryable)]
struct PointExample {
id: i32,
point: GeometryCollectionC<GeometryCollectionT<Point>>,
}
Fields
v: T
Trait Implementations
sourceimpl<'expr, T> AsExpression<Geometry> for &'expr GeometryCollectionC<T>
impl<'expr, T> AsExpression<Geometry> for &'expr GeometryCollectionC<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 GeometryCollectionC<T>
impl<T> AsExpression<Geometry> for GeometryCollectionC<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 GeometryCollectionC<T>
impl<'expr, T> AsExpression<Nullable<Geometry>> for &'expr GeometryCollectionC<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 GeometryCollectionC<T>
impl<T> AsExpression<Nullable<Geometry>> for GeometryCollectionC<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: Clone> Clone for GeometryCollectionC<T>
impl<T: Clone> Clone for GeometryCollectionC<T>
sourcefn clone(&self) -> GeometryCollectionC<T>
fn clone(&self) -> GeometryCollectionC<T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<T: Debug> Debug for GeometryCollectionC<T>
impl<T: Debug> Debug for GeometryCollectionC<T>
sourceimpl<P> FromSql<Geometry, Pg> for GeometryCollectionC<GeometryCollectionT<P>> where
P: Point + EwkbRead + Debug,
impl<P> FromSql<Geometry, Pg> for GeometryCollectionC<GeometryCollectionT<P>> where
P: Point + EwkbRead + Debug,
sourceimpl<T, __ST, __DB> FromSqlRow<__ST, __DB> for GeometryCollectionC<T> where
__DB: Backend,
Self: FromSql<__ST, __DB>,
impl<T, __ST, __DB> FromSqlRow<__ST, __DB> for GeometryCollectionC<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: PartialEq> PartialEq<GeometryCollectionC<T>> for GeometryCollectionC<T>
impl<T: PartialEq> PartialEq<GeometryCollectionC<T>> for GeometryCollectionC<T>
sourcefn eq(&self, other: &GeometryCollectionC<T>) -> bool
fn eq(&self, other: &GeometryCollectionC<T>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &GeometryCollectionC<T>) -> bool
fn ne(&self, other: &GeometryCollectionC<T>) -> bool
This method tests for !=
.
sourceimpl<T, __ST, __DB> Queryable<__ST, __DB> for GeometryCollectionC<T> where
__DB: Backend,
Self: FromSql<__ST, __DB>,
impl<T, __ST, __DB> Queryable<__ST, __DB> for GeometryCollectionC<T> where
__DB: Backend,
Self: FromSql<__ST, __DB>,
sourceimpl<P> ToSql<Geometry, Pg> for GeometryCollectionC<GeometryCollectionT<P>> where
P: Point + for<'a> AsEwkbPoint<'a> + EwkbRead + Debug,
impl<P> ToSql<Geometry, Pg> for GeometryCollectionC<GeometryCollectionT<P>> where
P: Point + for<'a> AsEwkbPoint<'a> + EwkbRead + Debug,
sourceimpl<T, __DB> ToSql<Nullable<Geometry>, __DB> for GeometryCollectionC<T> where
__DB: Backend,
Self: ToSql<Geometry, __DB>,
impl<T, __DB> ToSql<Nullable<Geometry>, __DB> for GeometryCollectionC<T> where
__DB: Backend,
Self: ToSql<Geometry, __DB>,
impl<T> StructuralPartialEq for GeometryCollectionC<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for GeometryCollectionC<T> where
T: RefUnwindSafe,
impl<T> Send for GeometryCollectionC<T> where
T: Send,
impl<T> Sync for GeometryCollectionC<T> where
T: Sync,
impl<T> Unpin for GeometryCollectionC<T> where
T: Unpin,
impl<T> UnwindSafe for GeometryCollectionC<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