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]

A type which uniquely represents Self in a SQL query. Read more

HAS_STATIC_QUERY_ID: bool = true

Can the SQL generated by Self be uniquely identified by its type? Read more

[src]

Returns the type id of Self::QueryId if Self::HAS_STATIC_QUERY_ID. Returns None otherwise. Read more

impl NotNull for Bool
[src]

impl SingleValue for Bool
[src]

impl HasSqlType<Bool> for Sqlite
[src]

[src]

Fetch the metadata for the given type Read more

[src]

Fetch the metadata for a tuple representing an entire row Read more

impl HasSqlType<Bool> for Mysql
[src]

[src]

Fetch the metadata for the given type Read more

[src]

Fetch the metadata for a tuple representing an entire row Read more

impl HasSqlType<Bool> for Pg
[src]

[src]

Fetch the metadata for the given type Read more

[src]

Fetch the metadata for a tuple representing an entire row Read more

impl Debug for Bool
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for Bool
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Bool
[src]

impl Default for Bool
[src]

[src]

Returns the "default value" for a type. Read more

impl ToSql<Bool, Mysql> for bool
[src]

[src]

See the trait documentation.

impl FromSql<Bool, Mysql> for bool
[src]

[src]

See the trait documentation.

impl FromSql<Bool, Pg> for bool
[src]

[src]

See the trait documentation.

impl ToSql<Bool, Pg> for bool
[src]

[src]

See the trait documentation.

impl FromSql<Bool, Sqlite> for bool
[src]

[src]

See the trait documentation.

impl ToSql<Bool, Sqlite> for bool
[src]

[src]

See the trait documentation.

impl<'expr> AsExpression<Bool> for &'expr bool
[src]

The expression being returned

[src]

Perform the conversion

impl<'expr2, 'expr> AsExpression<Bool> for &'expr2 &'expr bool
[src]

The expression being returned

[src]

Perform the conversion

impl AsExpression<Bool> for bool
[src]

The expression being returned

[src]

Perform the conversion

Auto Trait Implementations

impl Send for Bool

impl Sync for Bool