Struct block_tools::db::use_diesel::sql_types::Binary [−][src]
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<'expr2, 'expr> AsExpression<Binary> for &'expr2 &'expr [u8]
[src]
type Expression = Bound<Binary, &'expr2 &'expr [u8]>
The expression being returned
pub fn as_expression(
self
) -> <&'expr2 &'expr [u8] as AsExpression<Binary>>::Expression
[src]
self
) -> <&'expr2 &'expr [u8] as AsExpression<Binary>>::Expression
impl<'expr2, 'expr> AsExpression<Binary> for &'expr2 &'expr Vec<u8, Global>
[src]
type Expression = Bound<Binary, &'expr2 &'expr Vec<u8, Global>>
The expression being returned
pub fn as_expression(
self
) -> <&'expr2 &'expr Vec<u8, Global> as AsExpression<Binary>>::Expression
[src]
self
) -> <&'expr2 &'expr Vec<u8, Global> as AsExpression<Binary>>::Expression
impl AsExpression<Binary> for Vec<u8, Global>
[src]
type Expression = Bound<Binary, Vec<u8, Global>>
The expression being returned
pub fn as_expression(
self
) -> <Vec<u8, Global> as AsExpression<Binary>>::Expression
[src]
self
) -> <Vec<u8, Global> as AsExpression<Binary>>::Expression
impl<'expr> AsExpression<Binary> for &'expr [u8]
[src]
type Expression = Bound<Binary, &'expr [u8]>
The expression being returned
pub fn as_expression(self) -> <&'expr [u8] as AsExpression<Binary>>::Expression
[src]
impl<'expr> AsExpression<Binary> for &'expr Vec<u8, Global>
[src]
type Expression = Bound<Binary, &'expr Vec<u8, Global>>
The expression being returned
pub fn as_expression(
self
) -> <&'expr Vec<u8, Global> as AsExpression<Binary>>::Expression
[src]
self
) -> <&'expr Vec<u8, Global> as AsExpression<Binary>>::Expression
impl Clone for Binary
[src]
impl Copy for Binary
[src]
impl Debug for Binary
[src]
impl Default for Binary
[src]
impl<DB> FromSql<Binary, DB> for *const [u8] where
DB: Backend<RawValue = [u8]>,
[src]
DB: Backend<RawValue = [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
pub fn from_sql(
bytes: Option<&<DB as Backend>::RawValue>
) -> Result<*const [u8], Box<dyn Error + 'static + Send + Sync, Global>>
[src]
bytes: Option<&<DB as Backend>::RawValue>
) -> Result<*const [u8], Box<dyn Error + 'static + Send + Sync, Global>>
impl HasSqlType<Binary> for Pg
[src]
pub fn metadata(&PgMetadataLookup) -> PgTypeMetadata
[src]
impl NotNull for Binary
[src]
impl QueryId for Binary
[src]
type QueryId = Binary
A type which uniquely represents Self
in a SQL query. Read more
pub const HAS_STATIC_QUERY_ID: bool
[src]
pub fn query_id() -> Option<TypeId>
[src]
impl SingleValue for Binary
[src]
impl<DB> ToSql<Binary, DB> for [u8] where
DB: Backend,
[src]
DB: Backend,
pub fn to_sql<W>(
&self,
out: &mut Output<'_, W, DB>
) -> Result<IsNull, Box<dyn Error + 'static + Send + Sync, Global>> where
W: Write,
[src]
&self,
out: &mut Output<'_, W, DB>
) -> Result<IsNull, Box<dyn Error + 'static + Send + Sync, Global>> where
W: Write,
impl<DB> ToSql<Binary, DB> for Vec<u8, Global> where
DB: Backend,
[u8]: ToSql<Binary, DB>,
[src]
DB: Backend,
[u8]: ToSql<Binary, DB>,
Auto Trait Implementations
impl RefUnwindSafe for Binary
[src]
impl Send for Binary
[src]
impl Sync for Binary
[src]
impl Unpin for Binary
[src]
impl UnwindSafe for Binary
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoNullable for T where
T: NotNull,
[src]
T: NotNull,
impl<T> IntoSql for T
[src]
pub fn into_sql<T>(self) -> Self::Expression where
Self: AsExpression<T>,
[src]
Self: AsExpression<T>,
pub fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
[src]
&'a Self: AsExpression<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,