Struct diesel::sql_types::Bool [−][src]
pub struct Bool;
The boolean SQL type.
On backends without a native boolean type, this is emulated with the smallest supported integer.
ToSql
impls
FromSql
impls
Trait Implementations
impl QueryId for Bool
[src]
impl QueryId for Bool
type QueryId = Bool
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 Bool
[src]
impl NotNull for Bool
impl SingleValue for Bool
[src]
impl SingleValue for Bool
impl HasSqlType<Bool> for Sqlite
[src]
impl HasSqlType<Bool> for Sqlite
fn metadata(_: &()) -> SqliteType
[src]
fn metadata(_: &()) -> SqliteType
Fetch the metadata for the given type Read more
impl HasSqlType<Bool> for Mysql
[src]
impl HasSqlType<Bool> for Mysql
impl HasSqlType<Bool> for Pg
[src]
impl HasSqlType<Bool> for Pg
fn metadata(_: &PgMetadataLookup) -> PgTypeMetadata
[src]
fn metadata(_: &PgMetadataLookup) -> PgTypeMetadata
Fetch the metadata for the given type Read more
impl Debug for Bool
[src]
impl Debug for Bool
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 Bool
[src]
impl Clone for Bool
fn clone(&self) -> Bool
[src]
fn clone(&self) -> Bool
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)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for Bool
[src]
impl Copy for Bool
impl Default for Bool
[src]
impl Default for Bool
impl ToSql<Bool, Mysql> for bool
[src]
impl ToSql<Bool, Mysql> for bool
impl FromSql<Bool, Mysql> for bool
[src]
impl FromSql<Bool, Mysql> for bool
impl FromSql<Bool, Pg> for bool
[src]
impl FromSql<Bool, Pg> for bool
impl ToSql<Bool, Pg> for bool
[src]
impl ToSql<Bool, Pg> for bool
impl FromSql<Bool, Sqlite> for bool
[src]
impl FromSql<Bool, Sqlite> for bool
impl ToSql<Bool, Sqlite> for bool
[src]
impl ToSql<Bool, Sqlite> for bool
impl<'expr> AsExpression<Bool> for &'expr bool
[src]
impl<'expr> AsExpression<Bool> for &'expr bool
type Expression = Bound<Bool, 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<Bool> for &'expr2 &'expr bool
[src]
impl<'expr2, 'expr> AsExpression<Bool> for &'expr2 &'expr bool
type Expression = Bound<Bool, Self>
The expression being returned
fn as_expression(self) -> Self::Expression
[src]
fn as_expression(self) -> Self::Expression
Perform the conversion
impl AsExpression<Bool> for bool
[src]
impl AsExpression<Bool> for bool
type Expression = Bound<Bool, Self>
The expression being returned
fn as_expression(self) -> Self::Expression
[src]
fn as_expression(self) -> Self::Expression
Perform the conversion