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 Binarytype 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 Binaryimpl SingleValue for Binary[src]
impl SingleValue for Binaryimpl HasSqlType<Binary> for Sqlite[src]
impl HasSqlType<Binary> for Sqlitefn metadata(_: &()) -> SqliteType[src]
fn metadata(_: &()) -> SqliteTypeFetch the metadata for the given type Read more
impl HasSqlType<Binary> for Mysql[src]
impl HasSqlType<Binary> for Mysqlimpl HasSqlType<Binary> for Pg[src]
impl HasSqlType<Binary> for Pgfn metadata(_: &PgMetadataLookup) -> PgTypeMetadata[src]
fn metadata(_: &PgMetadataLookup) -> PgTypeMetadataFetch the metadata for the given type Read more
impl Debug for Binary[src]
impl Debug for Binaryfn 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 Binary[src]
impl Clone for Binaryfn clone(&self) -> Binary[src]
fn clone(&self) -> BinaryReturns 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 Binaryimpl Default for Binary[src]
impl Default for Binaryimpl 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::ExpressionPerform 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::ExpressionPerform 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::ExpressionPerform 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::ExpressionPerform 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::ExpressionPerform 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]