Type Alias diesel::pg::sql_types::SmallSerial

source ·
pub type SmallSerial = SmallInt;
Available on crate feature postgres_backend only.
Expand description

Alias for SmallInt

Aliased Type§

struct SmallSerial;

Trait Implementations§

source§

impl Add for SmallInt

§

type Rhs = SmallInt

The SQL type which can be added to this one
§

type Output = SmallInt

The SQL type of the result of adding Rhs to Self
source§

impl Clone for SmallInt

source§

fn clone(&self) -> SmallInt

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 SmallInt

source§

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

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

impl Default for SmallInt

source§

fn default() -> SmallInt

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

impl Div for SmallInt

§

type Rhs = SmallInt

The SQL type which this one can be divided by
§

type Output = SmallInt

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

impl Foldable for SmallInt

§

type Sum = Nullable<BigInt>

The SQL type of sum(this_type)
§

type Avg = Nullable<Numeric>

The SQL type of avg(this_type)
source§

impl Mul for SmallInt

§

type Rhs = SmallInt

The SQL type which this can be multiplied by
§

type Output = SmallInt

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

impl QueryId for SmallInt

§

type QueryId = SmallInt

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 SmallInt

§

type IsNull = NotNull

Is this type nullable? Read more
source§

impl Sub for SmallInt

§

type Rhs = SmallInt

The SQL type which can be subtracted from this one
§

type Output = SmallInt

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

impl Copy for SmallInt

source§

impl SingleValue for SmallInt

source§

impl SqlOrd for SmallInt