Struct diesel::sql_types::Binary [] [src]

pub struct Binary;

The binary SQL type.

Schema inference will treat all variants of BLOB as this type (e.g. VARBINARY, MEDIUMBLOB, etc).

ToSql impls

FromSql impls

Trait Implementations

impl QueryId for Binary
[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 Binary
[src]

impl SingleValue for Binary
[src]

impl HasSqlType<Binary> 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<Binary> 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<Binary> 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 Binary
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for Binary
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Binary
[src]

impl Default for Binary
[src]

[src]

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

impl FromSql<Binary, Sqlite> for *const [u8]
[src]

The returned pointer is only valid for the lifetime to the argument of from_sql. This impl is intended for uses where you want to write a new impl in terms of Vec<u8>, but don't want to allocate. We have to return a raw pointer instead of a reference with a lifetime due to the structure of FromSql

[src]

See the trait documentation.

impl<'expr> AsExpression<Binary> for &'expr Vec<u8>
[src]

The expression being returned

[src]

Perform the conversion

impl<'expr2, 'expr> AsExpression<Binary> for &'expr2 &'expr Vec<u8>
[src]

The expression being returned

[src]

Perform the conversion

impl AsExpression<Binary> for Vec<u8>
[src]

The expression being returned

[src]

Perform the conversion

impl<'expr> AsExpression<Binary> for &'expr [u8]
[src]

The expression being returned

[src]

Perform the conversion

impl<'expr2, 'expr> AsExpression<Binary> for &'expr2 &'expr [u8]
[src]

The expression being returned

[src]

Perform the conversion

impl<DB: Backend<RawValue = [u8]>> FromSql<Binary, DB> for *const [u8]
[src]

The returned pointer is only valid for the lifetime to the argument of from_sql. This impl is intended for uses where you want to write a new impl in terms of Vec<u8>, but don't want to allocate. We have to return a raw pointer instead of a reference with a lifetime due to the structure of FromSql

[src]

See the trait documentation.

impl<DB> ToSql<Binary, DB> for Vec<u8> where
    DB: Backend,
    [u8]: ToSql<Binary, DB>, 
[src]

[src]

See the trait documentation.

impl<DB: Backend> ToSql<Binary, DB> for [u8]
[src]

[src]

See the trait documentation.

Auto Trait Implementations

impl Send for Binary

impl Sync for Binary