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

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

Construct an empty RawBytesBindCollector

Trait Implementations

Serializes the given bind value, and collects the result.

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.