[][src]Struct diesel::query_builder::bind_collector::RawBytesBindCollector

pub struct RawBytesBindCollector<DB: Backend + TypeMetadata> {
    pub metadata: Vec<DB::TypeMetadata>,
    pub binds: Vec<Option<Vec<u8>>>,
}

A bind collector used by backends which transmit bind parameters as an opaque blob of bytes.

For most backends, this is the concrete implementation of BindCollector that should be used.

Fields

metadata: Vec<DB::TypeMetadata>

The metadata associated with each bind parameter.

This vec is guaranteed to be the same length as binds.

binds: Vec<Option<Vec<u8>>>

The serialized bytes for each bind parameter.

This vec is guaranteed to be the same length as metadata.

Methods

impl<DB: Backend + TypeMetadata> RawBytesBindCollector<DB>[src]

pub fn new() -> Self[src]

Construct an empty RawBytesBindCollector

Trait Implementations

impl<DB: Backend + TypeMetadata> BindCollector<DB> for RawBytesBindCollector<DB>[src]

impl<DB: Debug + Backend + TypeMetadata> Debug for RawBytesBindCollector<DB> where
    DB::TypeMetadata: Debug
[src]

Auto Trait Implementations

impl<DB> Unpin for RawBytesBindCollector<DB> where
    <DB as TypeMetadata>::TypeMetadata: Unpin

impl<DB> Sync for RawBytesBindCollector<DB> where
    <DB as TypeMetadata>::TypeMetadata: Sync

impl<DB> Send for RawBytesBindCollector<DB> where
    <DB as TypeMetadata>::TypeMetadata: Send

impl<DB> UnwindSafe for RawBytesBindCollector<DB> where
    <DB as TypeMetadata>::TypeMetadata: UnwindSafe

impl<DB> RefUnwindSafe for RawBytesBindCollector<DB> where
    <DB as TypeMetadata>::TypeMetadata: RefUnwindSafe

Blanket Implementations

impl<T> IntoSql for T[src]

fn into_sql<T>(self) -> AsExprOf<Self, T> where
    Self: AsExpression<T> + Sized
[src]

Convert self to an expression for Diesel's query builder. Read more

fn as_sql<'a, T>(&'a self) -> AsExprOf<&'a Self, T> where
    &'a Self: AsExpression<T>, 
[src]

Convert &self to an expression for Diesel's query builder. Read more

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]