Enum diesel::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

Positive

Fields

weight: i16
scale: u16
digits: Vec<i16>
Negative

Fields

weight: i16
scale: u16
digits: Vec<i16>
NaN

Trait Implementations

impl Eq for PgNumeric
[src]

impl PartialEq for PgNumeric
[src]

fn eq(&self, __arg_0: &PgNumeric) -> bool

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

fn ne(&self, __arg_0: &PgNumeric) -> bool

This method tests for !=.

impl Clone for PgNumeric
[src]

fn clone(&self) -> PgNumeric

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Debug for PgNumeric
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl FromSql<Numeric> for PgNumeric
[src]

fn from_sql(bytes: Option<&[u8]>) -> Result<Self, Box<Error>>

impl ToSql<Numeric> for PgNumeric
[src]

fn to_sql<W: Write>(&self, out: &mut W) -> Result<IsNullBox<Error>>

impl Queriable<Numeric> for PgNumeric
[src]

type Row = Self

fn build(row: Self::Row) -> Self

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

type Expression = Bound<Numeric, Self>

fn as_expression(self) -> Self::Expression

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

type Expression = Bound<Numeric, Self>

fn as_expression(self) -> Self::Expression

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

type Expression = Bound<Nullable<Numeric>, Self>

fn as_expression(self) -> Self::Expression

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

type Expression = Bound<Nullable<Numeric>, Self>

fn as_expression(self) -> Self::Expression

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

fn to_sql<W: Write>(&self, out: &mut W) -> Result<IsNullBox<Error>>