Struct diesel::sql_types::Integer [−][src]
pub struct Integer;
Trait Implementations
impl Foldable for Integer[src]
impl Foldable for Integertype Sum = Nullable<BigInt>
The SQL type of sum(this_type)
type Avg = Nullable<Numeric>
The SQL type of avg(this_type)
impl Add for Integer[src]
impl Add for Integertype Rhs = Integer
The SQL type which can be added to this one
type Output = Integer
The SQL type of the result of adding Rhs to Self
impl Sub for Integer[src]
impl Sub for Integertype Rhs = Integer
The SQL type which can be subtracted from this one
type Output = Integer
The SQL type of the result of subtracting Rhs from Self
impl Mul for Integer[src]
impl Mul for Integertype Rhs = Integer
The SQL type which this can be multiplied by
type Output = Integer
The SQL type of the result of multiplying Self by Rhs
impl Div for Integer[src]
impl Div for Integertype Rhs = Integer
The SQL type which this one can be divided by
type Output = Integer
The SQL type of the result of dividing Self by Rhs
impl SqlOrd for Integer[src]
impl SqlOrd for Integerimpl QueryId for Integer[src]
impl QueryId for Integertype QueryId = Integer
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 Integer[src]
impl NotNull for Integerimpl SingleValue for Integer[src]
impl SingleValue for Integerimpl HasSqlType<Integer> for Sqlite[src]
impl HasSqlType<Integer> for Sqlitefn metadata(_: &()) -> SqliteType[src]
fn metadata(_: &()) -> SqliteTypeFetch the metadata for the given type Read more
impl HasSqlType<Integer> for Mysql[src]
impl HasSqlType<Integer> for Mysqlimpl HasSqlType<Integer> for Pg[src]
impl HasSqlType<Integer> for Pgfn metadata(_: &PgMetadataLookup) -> PgTypeMetadata[src]
fn metadata(_: &PgMetadataLookup) -> PgTypeMetadataFetch the metadata for the given type Read more
impl Debug for Integer[src]
impl Debug for Integerfn 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 Integer[src]
impl Clone for Integerfn clone(&self) -> Integer[src]
fn clone(&self) -> IntegerReturns 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 Integer[src]
impl Copy for Integerimpl Default for Integer[src]
impl Default for Integerimpl FromSql<Integer, Sqlite> for i32[src]
impl FromSql<Integer, Sqlite> for i32impl<DB: Backend<RawValue = [u8]>> FromSql<Integer, DB> for i32[src]
impl<DB: Backend<RawValue = [u8]>> FromSql<Integer, DB> for i32impl<DB: Backend> ToSql<Integer, DB> for i32[src]
impl<DB: Backend> ToSql<Integer, DB> for i32impl<'expr> AsExpression<Integer> for &'expr i32[src]
impl<'expr> AsExpression<Integer> for &'expr i32type Expression = Bound<Integer, Self>
The expression being returned
fn as_expression(self) -> Self::Expression[src]
fn as_expression(self) -> Self::ExpressionPerform the conversion
impl<'expr2, 'expr> AsExpression<Integer> for &'expr2 &'expr i32[src]
impl<'expr2, 'expr> AsExpression<Integer> for &'expr2 &'expr i32type Expression = Bound<Integer, Self>
The expression being returned
fn as_expression(self) -> Self::Expression[src]
fn as_expression(self) -> Self::ExpressionPerform the conversion
impl AsExpression<Integer> for i32[src]
impl AsExpression<Integer> for i32type Expression = Bound<Integer, Self>
The expression being returned
fn as_expression(self) -> Self::Expression[src]
fn as_expression(self) -> Self::ExpressionPerform the conversion