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,
}

Variants

Fields of Positive

Fields of Negative

Trait Implementations

impl Debug for PgNumeric
[src]

Formats the value using the given formatter.

impl Clone for PgNumeric
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for PgNumeric
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for PgNumeric
[src]

impl FromSql<Numeric, Pg> for PgNumeric
[src]

impl ToSql<Numeric, Pg> for PgNumeric
[src]

impl<DB> FromSqlRow<Numeric, DB> for PgNumeric where
    DB: Backend + HasSqlType<Numeric>,
    PgNumeric: FromSql<Numeric, DB>, 
[src]

The number of fields that this type will consume. Should be equal to the number of times you would call row.take() in build_from_row Read more

impl<DB> Queryable<Numeric, DB> for PgNumeric where
    DB: Backend + HasSqlType<Numeric>,
    PgNumeric: FromSqlRow<Numeric, DB>, 
[src]

impl<'a> AsExpression<Numeric> for PgNumeric
[src]

impl<'a, 'expr> AsExpression<Numeric> for &'expr PgNumeric
[src]

impl<'a> AsExpression<Nullable<Numeric>> for PgNumeric
[src]

impl<'a, 'expr> AsExpression<Nullable<Numeric>> for &'expr PgNumeric
[src]

impl<'a, DB> ToSql<Nullable<Numeric>, DB> for PgNumeric where
    DB: Backend + HasSqlType<Numeric>,
    PgNumeric: ToSql<Numeric, DB>, 
[src]