Enum diesel::pg::data_types::PgNumeric [−][src]
pub enum PgNumeric { Positive { weight: i16, scale: u16, digits: Vec<i16>, }, Negative { weight: i16, scale: u16, digits: Vec<i16>, }, NaN, }
Expand description
Represents a NUMERIC value, closely mirroring the PG wire protocol representation
Variants
A positive number
Fields of Positive
A negative number
Fields of Negative
Not a number
Trait Implementations
type Expression = Bound<Nullable<Numeric>, Self>
type Expression = Bound<Nullable<Numeric>, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Nullable<Numeric>, Self>
type Expression = Bound<Nullable<Numeric>, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Numeric, Self>
type Expression = Bound<Numeric, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Numeric, Self>
type Expression = Bound<Numeric, Self>
The expression being returned
Perform the conversion
Performs the conversion.
Performs the conversion.
impl<__ST, __DB> FromSqlRow<__ST, __DB> for PgNumeric where
__DB: Backend,
Self: FromSql<__ST, __DB>,
impl<__ST, __DB> FromSqlRow<__ST, __DB> for PgNumeric where
__DB: Backend,
Self: FromSql<__ST, __DB>,
See the trait documentation.
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
Auto Trait Implementations
impl RefUnwindSafe for PgNumeric
impl UnwindSafe for PgNumeric
Blanket Implementations
Mutably borrows from an owned value. Read more
Convert self
to an expression for Diesel’s query builder. Read more