Struct postgis_diesel::types::PointZM
source · pub struct PointZM {
pub x: f64,
pub y: f64,
pub z: f64,
pub m: f64,
pub srid: Option<u32>,
}
Expand description
Use that structure in Insertable
or Queryable
struct if you work with PointZM geometry.
#[macro_use] extern crate diesel;
use postgis_diesel::types::PointZM;
#[derive(Queryable)]
struct QueryablePointZMExample {
id: i32,
point: PointZM,
}
Fields§
§x: f64
§y: f64
§z: f64
§m: f64
§srid: Option<u32>
Implementations§
Trait Implementations§
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 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<'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 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<'expr> AsExpression<Nullable<Geography>> for &'expr PointZM
impl<'expr> AsExpression<Nullable<Geography>> for &'expr PointZM
§type Expression = Bound<Nullable<Geography>, &'expr PointZM>
type Expression = Bound<Nullable<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 AsExpression<Nullable<Geography>> for PointZM
impl AsExpression<Nullable<Geography>> for PointZM
§type Expression = Bound<Nullable<Geography>, PointZM>
type Expression = Bound<Nullable<Geography>, PointZM>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<'expr> AsExpression<Nullable<Geometry>> for &'expr PointZM
impl<'expr> AsExpression<Nullable<Geometry>> for &'expr PointZM
§type Expression = Bound<Nullable<Geometry>, &'expr PointZM>
type Expression = Bound<Nullable<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 AsExpression<Nullable<Geometry>> for PointZM
impl AsExpression<Nullable<Geometry>> for PointZM
§type Expression = Bound<Nullable<Geometry>, PointZM>
type Expression = Bound<Nullable<Geometry>, PointZM>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<'de> Deserialize<'de> for PointZM
impl<'de> Deserialize<'de> for PointZM
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<PointZM> for PointZM
impl PartialEq<PointZM> for PointZM
source§impl PointT for PointZM
impl PointT for PointZM
fn get_x(&self) -> f64
fn get_y(&self) -> f64
fn get_srid(&self) -> Option<u32>
fn get_z(&self) -> Option<f64>
fn get_m(&self) -> Option<f64>
fn dimension(&self) -> u32
fn new_point( x: f64, y: f64, srid: Option<u32>, z: Option<f64>, m: Option<f64> ) -> Result<Self, PointConstructorError>
source§impl<__ST, __DB> Queryable<__ST, __DB> for PointZMwhere
__DB: Backend,
__ST: SingleValue,
Self: FromSql<__ST, __DB>,
impl<__ST, __DB> Queryable<__ST, __DB> for PointZMwhere __DB: Backend, __ST: SingleValue, Self: FromSql<__ST, __DB>,
source§impl<__DB> ToSql<Nullable<Geography>, __DB> for PointZMwhere
__DB: Backend,
Self: ToSql<Geography, __DB>,
impl<__DB> ToSql<Nullable<Geography>, __DB> for PointZMwhere __DB: Backend, Self: ToSql<Geography, __DB>,
source§impl<__DB> ToSql<Nullable<Geometry>, __DB> for PointZMwhere
__DB: Backend,
Self: ToSql<Geometry, __DB>,
impl<__DB> ToSql<Nullable<Geometry>, __DB> for PointZMwhere __DB: Backend, Self: ToSql<Geometry, __DB>,
impl Copy for PointZM
impl StructuralPartialEq for PointZM
Auto Trait Implementations§
impl RefUnwindSafe for PointZM
impl Send for PointZM
impl Sync for PointZM
impl Unpin for PointZM
impl UnwindSafe for PointZM
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, ST, DB> FromSqlRow<ST, DB> for Twhere
T: Queryable<ST, DB>,
ST: SqlTypeOrSelectable,
DB: Backend,
<T as Queryable<ST, DB>>::Row: FromStaticSqlRow<ST, DB>,
impl<T, ST, DB> FromSqlRow<ST, DB> for Twhere T: Queryable<ST, DB>, ST: SqlTypeOrSelectable, DB: Backend, <T as Queryable<ST, DB>>::Row: FromStaticSqlRow<ST, DB>,
source§impl<T, ST, DB> FromStaticSqlRow<ST, DB> for Twhere
DB: Backend,
T: FromSql<ST, DB>,
ST: SingleValue,
impl<T, ST, DB> FromStaticSqlRow<ST, DB> for Twhere DB: Backend, T: FromSql<ST, DB>, ST: SingleValue,
source§impl<T> IntoSql for T
impl<T> IntoSql for T
source§fn into_sql<T>(self) -> Self::Expressionwhere
Self: AsExpression<T> + Sized,
T: SqlType + TypedExpressionType,
fn into_sql<T>(self) -> Self::Expressionwhere Self: AsExpression<T> + Sized, T: SqlType + TypedExpressionType,
Convert
self
to an expression for Diesel’s query builder. Read moresource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
T: SqlType + TypedExpressionType,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere &'a Self: AsExpression<T>, T: SqlType + TypedExpressionType,
Convert
&self
to an expression for Diesel’s query builder. Read moresource§impl<T, ST, DB> StaticallySizedRow<ST, DB> for Twhere
ST: SqlTypeOrSelectable + TupleSize,
T: Queryable<ST, DB>,
DB: Backend,
impl<T, ST, DB> StaticallySizedRow<ST, DB> for Twhere ST: SqlTypeOrSelectable + TupleSize, T: Queryable<ST, DB>, DB: Backend,
source§const FIELD_COUNT: usize = <ST as crate::util::TupleSize>::SIZE
const FIELD_COUNT: usize = <ST as crate::util::TupleSize>::SIZE
The number of fields that this type will consume.