Enum diesel::pg::data_types::PgNumeric [−][src]
Represents a NUMERIC value, closely mirroring the PG wire protocol representation
Variants
Positive
A positive number
Fields of Positive
weight: i16 | How many digits come before the decimal point? |
scale: u16 | How many significant digits are there? |
digits: Vec<i16> | The digits in this number, stored in base 10000 |
Negative
A negative number
Fields of Negative
weight: i16 | How many digits come before the decimal point? |
scale: u16 | How many significant digits are there? |
digits: Vec<i16> | The digits in this number, stored in base 10000 |
NaN
Not a number
Trait Implementations
impl<__ST, __DB> FromSqlRow<__ST, __DB> for PgNumeric where
__DB: Backend,
Self: FromSql<__ST, __DB>,
[src]
[+]
impl<__ST, __DB> FromSqlRow<__ST, __DB> for PgNumeric where
__DB: Backend,
Self: FromSql<__ST, __DB>,
impl<__ST, __DB> Queryable<__ST, __DB> for PgNumeric where
__DB: Backend,
Self: FromSql<__ST, __DB>,
[src]
[+]
impl<__ST, __DB> Queryable<__ST, __DB> for PgNumeric where
__DB: Backend,
Self: FromSql<__ST, __DB>,
impl<'expr> AsExpression<Numeric> for &'expr PgNumeric
[src]
[+]
impl<'expr> AsExpression<Numeric> for &'expr PgNumeric
impl<'expr> AsExpression<Nullable<Numeric>> for &'expr PgNumeric
[src]
[+]
impl<'expr> AsExpression<Nullable<Numeric>> for &'expr PgNumeric
impl<__DB> ToSql<Nullable<Numeric>, __DB> for PgNumeric where
__DB: Backend,
Self: ToSql<Numeric, __DB>,
[src]
[+]
impl<__DB> ToSql<Nullable<Numeric>, __DB> for PgNumeric where
__DB: Backend,
Self: ToSql<Numeric, __DB>,
impl AsExpression<Numeric> for PgNumeric
[src]
[+]
impl AsExpression<Numeric> for PgNumeric
impl AsExpression<Nullable<Numeric>> for PgNumeric
[src]
[+]
impl AsExpression<Nullable<Numeric>> for PgNumeric
impl Debug for PgNumeric
[src]
[+]
impl Debug for PgNumeric
impl Clone for PgNumeric
[src]
[+]
impl Clone for PgNumeric
impl PartialEq for PgNumeric
[src]
[+]
impl PartialEq for PgNumeric
impl Eq for PgNumeric
[src]
impl Eq for PgNumeric
impl FromSql<Numeric, Pg> for PgNumeric
[src]
[+]
impl FromSql<Numeric, Pg> for PgNumeric
impl ToSql<Numeric, Pg> for PgNumeric
[src]
[+]
impl ToSql<Numeric, Pg> for PgNumeric