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

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

The metadata associated with each bind parameter.

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

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]

Construct an empty RawBytesBindCollector

Trait Implementations

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

Formats the value using the given formatter. Read more

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

Serializes the given bind value, and collects the result.

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