Struct diesel::sql_types::SmallInt [−][src]
pub struct SmallInt;
Trait Implementations
impl Foldable for SmallInt
[src]
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)
impl Add for SmallInt
[src]
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
impl Sub for SmallInt
[src]
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
impl Mul for SmallInt
[src]
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
impl Div for SmallInt
[src]
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
impl SqlOrd for SmallInt
[src]
impl SqlOrd for SmallInt
impl QueryId for SmallInt
[src]
impl QueryId for SmallInt
type QueryId = SmallInt
A type which uniquely represents Self
in a SQL query. Read more
const HAS_STATIC_QUERY_ID: bool
HAS_STATIC_QUERY_ID: bool = true
Can the SQL generated by Self
be uniquely identified by its type? Read more
fn query_id() -> Option<TypeId>
[src]
fn query_id() -> Option<TypeId>
Returns the type id of Self::QueryId
if Self::HAS_STATIC_QUERY_ID
. Returns None
otherwise. Read more
impl NotNull for SmallInt
[src]
impl NotNull for SmallInt
impl SingleValue for SmallInt
[src]
impl SingleValue for SmallInt
impl HasSqlType<SmallInt> for Sqlite
[src]
impl HasSqlType<SmallInt> for Sqlite
fn metadata(_: &()) -> SqliteType
[src]
fn metadata(_: &()) -> SqliteType
Fetch the metadata for the given type Read more
impl HasSqlType<SmallInt> for Mysql
[src]
impl HasSqlType<SmallInt> for Mysql
impl HasSqlType<SmallInt> for Pg
[src]
impl HasSqlType<SmallInt> for Pg
fn metadata(_: &PgMetadataLookup) -> PgTypeMetadata
[src]
fn metadata(_: &PgMetadataLookup) -> PgTypeMetadata
Fetch the metadata for the given type Read more
impl Debug for SmallInt
[src]
impl Debug for SmallInt
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for SmallInt
[src]
impl Clone for SmallInt
fn clone(&self) -> SmallInt
[src]
fn clone(&self) -> SmallInt
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Copy for SmallInt
[src]
impl Copy for SmallInt
impl Default for SmallInt
[src]
impl Default for SmallInt
impl FromSql<SmallInt, Sqlite> for i16
[src]
impl FromSql<SmallInt, Sqlite> for i16
impl<DB: Backend<RawValue = [u8]>> FromSql<SmallInt, DB> for i16
[src]
impl<DB: Backend<RawValue = [u8]>> FromSql<SmallInt, DB> for i16
impl<DB: Backend> ToSql<SmallInt, DB> for i16
[src]
impl<DB: Backend> ToSql<SmallInt, DB> for i16
impl<'expr> AsExpression<SmallInt> for &'expr i16
[src]
impl<'expr> AsExpression<SmallInt> for &'expr i16
type Expression = Bound<SmallInt, Self>
The expression being returned
fn as_expression(self) -> Self::Expression
[src]
fn as_expression(self) -> Self::Expression
Perform the conversion
impl<'expr2, 'expr> AsExpression<SmallInt> for &'expr2 &'expr i16
[src]
impl<'expr2, 'expr> AsExpression<SmallInt> for &'expr2 &'expr i16
type Expression = Bound<SmallInt, Self>
The expression being returned
fn as_expression(self) -> Self::Expression
[src]
fn as_expression(self) -> Self::Expression
Perform the conversion
impl AsExpression<SmallInt> for i16
[src]
impl AsExpression<SmallInt> for i16
type Expression = Bound<SmallInt, Self>
The expression being returned
fn as_expression(self) -> Self::Expression
[src]
fn as_expression(self) -> Self::Expression
Perform the conversion