Struct diesel::sql_types::SmallInt [−][src]
pub struct SmallInt;
Trait Implementations
impl Foldable for SmallInt[src]
impl Foldable for SmallInttype 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 SmallInttype 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 SmallInttype 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 SmallInttype 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 SmallInttype 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 SmallIntimpl QueryId for SmallInt[src]
impl QueryId for SmallInttype 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 SmallIntimpl SingleValue for SmallInt[src]
impl SingleValue for SmallIntimpl HasSqlType<SmallInt> for Sqlite[src]
impl HasSqlType<SmallInt> for Sqlitefn metadata(_: &()) -> SqliteType[src]
fn metadata(_: &()) -> SqliteTypeFetch the metadata for the given type Read more
impl HasSqlType<SmallInt> for Mysql[src]
impl HasSqlType<SmallInt> for Mysqlimpl HasSqlType<SmallInt> for Pg[src]
impl HasSqlType<SmallInt> for Pgfn metadata(_: &PgMetadataLookup) -> PgTypeMetadata[src]
fn metadata(_: &PgMetadataLookup) -> PgTypeMetadataFetch the metadata for the given type Read more
impl Debug for SmallInt[src]
impl Debug for SmallIntfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for SmallInt[src]
impl Clone for SmallIntfn clone(&self) -> SmallInt[src]
fn clone(&self) -> SmallIntReturns 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 SmallIntimpl Default for SmallInt[src]
impl Default for SmallIntimpl FromSql<SmallInt, Sqlite> for i16[src]
impl FromSql<SmallInt, Sqlite> for i16impl<DB: Backend<RawValue = [u8]>> FromSql<SmallInt, DB> for i16[src]
impl<DB: Backend<RawValue = [u8]>> FromSql<SmallInt, DB> for i16impl<DB: Backend> ToSql<SmallInt, DB> for i16[src]
impl<DB: Backend> ToSql<SmallInt, DB> for i16impl<'expr> AsExpression<SmallInt> for &'expr i16[src]
impl<'expr> AsExpression<SmallInt> for &'expr i16type Expression = Bound<SmallInt, Self>
The expression being returned
fn as_expression(self) -> Self::Expression[src]
fn as_expression(self) -> Self::ExpressionPerform the conversion
impl<'expr2, 'expr> AsExpression<SmallInt> for &'expr2 &'expr i16[src]
impl<'expr2, 'expr> AsExpression<SmallInt> for &'expr2 &'expr i16type Expression = Bound<SmallInt, Self>
The expression being returned
fn as_expression(self) -> Self::Expression[src]
fn as_expression(self) -> Self::ExpressionPerform the conversion
impl AsExpression<SmallInt> for i16[src]
impl AsExpression<SmallInt> for i16type Expression = Bound<SmallInt, Self>
The expression being returned
fn as_expression(self) -> Self::Expression[src]
fn as_expression(self) -> Self::ExpressionPerform the conversion