Struct diesel::types::Numeric
[−]
[src]
pub struct Numeric;
The numeric SQL type.
ToSql impls
bigdecimal::BigDecimal(currently PostgreSQL and MySQL only, requires thenumericfeature, which depends on thebigdecimalcrate)
FromSql impls
bigdecimal::BigDecimal(currently PostgreSQL and MySQL only, requires thenumericfeature, which depends on thebigdecimalcrate)
On SQLite, Double should be used instead.
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]
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