Type Alias diesel::sql_types::Decimal

source ·
pub type Decimal = Numeric;
Expand description

Alias for Numeric

Aliased Type§

struct Decimal;

Trait Implementations§

source§

impl Add for Numeric

§

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
source§

impl Clone for Numeric

source§

fn clone(&self) -> Numeric

Returns a copy of the value. Read more
1.0.0 · source§

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

Performs copy-assignment from source. Read more
source§

impl Debug for Numeric

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Numeric

source§

fn default() -> Numeric

Returns the “default value” for a type. Read more
source§

impl Div for Numeric

§

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
source§

impl Foldable for Numeric

§

type Sum = Nullable<Numeric>

The SQL type of sum(this_type)
§

type Avg = Nullable<Numeric>

The SQL type of avg(this_type)
source§

impl Mul for Numeric

§

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
source§

impl QueryId for Numeric

§

type QueryId = Numeric

A type which uniquely represents Self in a SQL query. Read more
source§

const HAS_STATIC_QUERY_ID: bool = true

Can the SQL generated by Self be uniquely identified by its type? Read more
source§

fn query_id() -> Option<TypeId>

Returns the type id of Self::QueryId if Self::HAS_STATIC_QUERY_ID. Returns None otherwise. Read more
source§

impl SqlType for Numeric

§

type IsNull = NotNull

Is this type nullable? Read more
source§

impl Sub for Numeric

§

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
source§

impl Copy for Numeric

source§

impl SingleValue for Numeric