Type Alias Decimal

Source
pub type Decimal = Numeric;
Expand description

Alias for Numeric

Aliased Type§

struct Decimal;

Trait Implementations

Source§

impl Add for Numeric

Source§

type Rhs = Numeric

The SQL type which can be added to this one
Source§

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

Source§

type Rhs = Numeric

The SQL type which this one can be divided by
Source§

type Output = Numeric

The SQL type of the result of dividing Self by Rhs
Source§

impl Foldable for Numeric

Source§

type Sum = Nullable<Numeric>

The SQL type of sum(this_type)
Source§

type Avg = Nullable<Numeric>

The SQL type of avg(this_type)
Source§

impl Mul for Numeric

Source§

type Rhs = Numeric

The SQL type which this can be multiplied by
Source§

type Output = Numeric

The SQL type of the result of multiplying Self by Rhs
Source§

impl QueryId for Numeric

Source§

const HAS_STATIC_QUERY_ID: bool = true

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

type QueryId = Numeric

A type which uniquely represents Self in a SQL query. 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

Source§

type IsNull = NotNull

Is this type nullable? Read more
Source§

impl Sub for Numeric

Source§

type Rhs = Numeric

The SQL type which can be subtracted from this one
Source§

type Output = Numeric

The SQL type of the result of subtracting Rhs from Self
Source§

impl Copy for Numeric

Source§

impl SingleValue for Numeric