[][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.

Implementations

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> RefUnwindSafe for RawBytesBindCollector<DB> where
    <DB as TypeMetadata>::TypeMetadata: RefUnwindSafe

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

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

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

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

Blanket Implementations

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

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

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

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

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

impl<T> IntoSql for 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<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]