Struct diesel::sql_types::Numeric
[−]
[src]
pub struct Numeric;
The arbitrary precision numeric SQL type.
This type is only supported on PostgreSQL and MySQL.
On SQLite, Double
should be used instead.
ToSql
impls
bigdecimal::BigDecimal
withfeature = ["numeric"]
FromSql
impls
bigdecimal::BigDecimal
withfeature = ["numeric"]
Trait Implementations
impl Add for Numeric
[src]
type Rhs = Numeric
The SQL type which can be added to this one
type Output = Numeric
The SQL type of the result of adding Rhs
to Self
impl Sub for Numeric
[src]
type Rhs = Numeric
The SQL type which can be subtracted from this one
type Output = Numeric
The SQL type of the result of subtracting Rhs
from Self
impl Mul for Numeric
[src]
type Rhs = Numeric
The SQL type which this can be multiplied by
type Output = Numeric
The SQL type of the result of multiplying Self
by Rhs
impl Div for Numeric
[src]
type Rhs = Numeric
The SQL type which this one can be divided by
type Output = Numeric
The SQL type of the result of dividing Self
by Rhs
impl Foldable for Numeric
[src]
type Sum = Nullable<Numeric>
The SQL type of sum(this_type)
type Avg = Nullable<Numeric>
The SQL type of avg(this_type)
impl Debug for Numeric
[src]
impl Clone for Numeric
[src]
fn clone(&self) -> Numeric
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more