[][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> Send for RawBytesBindCollector<DB> where
    <DB as TypeMetadata>::TypeMetadata: Send

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

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 for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.