# [−][src]Enum diesel::pg::data_types::PgNumeric

```pub enum PgNumeric {
Positive {
weight: i16,
scale: u16,
digits: Vec<i16>,
},
Negative {
weight: i16,
scale: u16,
digits: Vec<i16>,
},
NaN,
}```

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<'expr> AsExpression<Nullable<Numeric>> for &'expr PgNumeric`[src]

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

The expression being returned

### `impl AsExpression<Nullable<Numeric>> for PgNumeric`[src]

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

The expression being returned

### `impl<'expr> AsExpression<Numeric> for &'expr PgNumeric`[src]

#### `type Expression = Bound<Numeric, Self>`

The expression being returned

### `impl AsExpression<Numeric> for PgNumeric`[src]

#### `type Expression = Bound<Numeric, Self>`

The expression being returned

### `impl<__ST, __DB> Queryable<__ST, __DB> for PgNumeric where    __DB: Backend,    Self: FromSql<__ST, __DB>, `[src]

#### `type Row = Self`

The Rust type you'd like to map from. Read more

## Blanket Implementations

### `impl<T> ToOwned for T where    T: Clone, `[src]

#### `type Owned = T`

The resulting type after obtaining ownership.

### `impl<T, U> TryFrom<U> for T where    U: Into<T>, `[src]

#### `type Error = Infallible`

The type returned in the event of a conversion error.

### `impl<T, U> TryInto<U> for T where    U: TryFrom<T>, `[src]

#### `type Error = <U as TryFrom<T>>::Error`

The type returned in the event of a conversion error.