Enum diesel::pg::data_types::PgNumeric
source · pub enum PgNumeric {
// some variants omitted
}
Available on crate feature
postgres_backend
only.Expand description
Represents a NUMERIC value, closely mirroring the PG wire protocol representation
Trait Implementations§
source§impl<'expr> AsExpression<Nullable<Numeric>> for &'expr PgNumeric
impl<'expr> AsExpression<Nullable<Numeric>> for &'expr PgNumeric
§type Expression = Bound<Nullable<Numeric>, &'expr PgNumeric>
type Expression = Bound<Nullable<Numeric>, &'expr PgNumeric>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl AsExpression<Nullable<Numeric>> for PgNumeric
impl AsExpression<Nullable<Numeric>> for PgNumeric
§type Expression = Bound<Nullable<Numeric>, PgNumeric>
type Expression = Bound<Nullable<Numeric>, PgNumeric>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<'expr> AsExpression<Numeric> for &'expr PgNumeric
impl<'expr> AsExpression<Numeric> for &'expr PgNumeric
§type Expression = Bound<Numeric, &'expr PgNumeric>
type Expression = Bound<Numeric, &'expr PgNumeric>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl AsExpression<Numeric> for PgNumeric
impl AsExpression<Numeric> for PgNumeric
§type Expression = Bound<Numeric, PgNumeric>
type Expression = Bound<Numeric, PgNumeric>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<'a> From<&'a BigDecimal> for PgNumeric
Available on crate feature bigdecimal
only.
impl<'a> From<&'a BigDecimal> for PgNumeric
Available on crate feature
bigdecimal
only.source§fn from(decimal: &'a BigDecimal) -> Self
fn from(decimal: &'a BigDecimal) -> Self
Converts to this type from the input type.
source§impl From<BigDecimal> for PgNumeric
Available on crate feature bigdecimal
only.
impl From<BigDecimal> for PgNumeric
Available on crate feature
bigdecimal
only.source§fn from(bigdecimal: BigDecimal) -> Self
fn from(bigdecimal: BigDecimal) -> Self
Converts to this type from the input type.
source§impl PartialEq<PgNumeric> for PgNumeric
impl PartialEq<PgNumeric> for PgNumeric
source§impl<__ST, __DB> Queryable<__ST, __DB> for PgNumericwhere
__DB: Backend,
__ST: SingleValue,
Self: FromSql<__ST, __DB>,
impl<__ST, __DB> Queryable<__ST, __DB> for PgNumericwhere __DB: Backend, __ST: SingleValue, Self: FromSql<__ST, __DB>,
source§impl<__DB> ToSql<Nullable<Numeric>, __DB> for PgNumericwhere
__DB: Backend,
Self: ToSql<Numeric, __DB>,
impl<__DB> ToSql<Nullable<Numeric>, __DB> for PgNumericwhere __DB: Backend, Self: ToSql<Numeric, __DB>,
source§impl<'a> TryFrom<&'a PgNumeric> for BigDecimal
Available on crate feature bigdecimal
only.
impl<'a> TryFrom<&'a PgNumeric> for BigDecimal
Available on crate feature
bigdecimal
only.source§impl TryFrom<PgNumeric> for BigDecimal
Available on crate feature bigdecimal
only.
impl TryFrom<PgNumeric> for BigDecimal
Available on crate feature
bigdecimal
only.impl Eq for PgNumeric
impl StructuralEq for PgNumeric
impl StructuralPartialEq for PgNumeric
Auto Trait Implementations§
impl RefUnwindSafe for PgNumeric
impl Send for PgNumeric
impl Sync for PgNumeric
impl Unpin for PgNumeric
impl UnwindSafe for PgNumeric
Blanket Implementations§
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) -> AsExprOf<Self, T>where
Self: AsExpression<T> + Sized,
T: SqlType + TypedExpressionType,
fn into_sql<T>(self) -> AsExprOf<Self, T>where 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) -> AsExprOf<&'a Self, T>where
&'a Self: AsExpression<T>,
T: SqlType + TypedExpressionType,
fn as_sql<'a, T>(&'a self) -> AsExprOf<&'a Self, T>where &'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 =
const FIELD_COUNT: usize =
The number of fields that this type will consume.