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]
impl QueryId for Binary
type QueryId = Binary
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 Binary
[src]
impl NotNull for Binary
impl SingleValue for Binary
[src]
impl SingleValue for Binary
impl HasSqlType<Binary> for Sqlite
[src]
impl HasSqlType<Binary> for Sqlite
fn metadata(_: &()) -> SqliteType
[src]
fn metadata(_: &()) -> SqliteType
Fetch the metadata for the given type Read more
impl HasSqlType<Binary> for Mysql
[src]
impl HasSqlType<Binary> for Mysql
impl HasSqlType<Binary> for Pg
[src]
impl HasSqlType<Binary> for Pg
fn metadata(_: &PgMetadataLookup) -> PgTypeMetadata
[src]
fn metadata(_: &PgMetadataLookup) -> PgTypeMetadata
Fetch the metadata for the given type Read more
impl Debug for Binary
[src]
impl Debug for Binary
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 Binary
[src]
impl Clone for Binary
fn clone(&self) -> Binary
[src]
fn clone(&self) -> Binary
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)
Performs copy-assignment from source
. Read more
impl Copy for Binary
[src]
impl Copy for Binary
impl Default for Binary
[src]
impl Default for Binary
impl FromSql<Binary, Sqlite> for *const [u8]
[src]
impl FromSql<Binary, Sqlite> for *const [u8]
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
impl<'expr> AsExpression<Binary> for &'expr Vec<u8>
[src]
impl<'expr> AsExpression<Binary> for &'expr Vec<u8>
type Expression = Bound<Binary, 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<Binary> for &'expr2 &'expr Vec<u8>
[src]
impl<'expr2, 'expr> AsExpression<Binary> for &'expr2 &'expr Vec<u8>
type Expression = Bound<Binary, Self>
The expression being returned
fn as_expression(self) -> Self::Expression
[src]
fn as_expression(self) -> Self::Expression
Perform the conversion
impl AsExpression<Binary> for Vec<u8>
[src]
impl AsExpression<Binary> for Vec<u8>
type Expression = Bound<Binary, Self>
The expression being returned
fn as_expression(self) -> Self::Expression
[src]
fn as_expression(self) -> Self::Expression
Perform the conversion
impl<'expr> AsExpression<Binary> for &'expr [u8]
[src]
impl<'expr> AsExpression<Binary> for &'expr [u8]
type Expression = Bound<Binary, 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<Binary> for &'expr2 &'expr [u8]
[src]
impl<'expr2, 'expr> AsExpression<Binary> for &'expr2 &'expr [u8]
type Expression = Bound<Binary, Self>
The expression being returned
fn as_expression(self) -> Self::Expression
[src]
fn as_expression(self) -> Self::Expression
Perform the conversion
impl<DB: Backend<RawValue = [u8]>> FromSql<Binary, DB> for *const [u8]
[src]
impl<DB: Backend<RawValue = [u8]>> FromSql<Binary, DB> for *const [u8]
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
impl<DB> ToSql<Binary, DB> for Vec<u8> where
DB: Backend,
[u8]: ToSql<Binary, DB>,
[src]
impl<DB> ToSql<Binary, DB> for Vec<u8> where
DB: Backend,
[u8]: ToSql<Binary, DB>,
impl<DB: Backend> ToSql<Binary, DB> for [u8]
[src]
impl<DB: Backend> ToSql<Binary, DB> for [u8]