#[non_exhaustive]
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 (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§metadata: Vec<DB::TypeMetadata>
Available on crate feature i-implement-a-third-party-backend-and-opt-into-breaking-changes only.

The metadata associated with each bind parameter.

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

§binds: Vec<Option<Vec<u8>>>
Available on crate feature i-implement-a-third-party-backend-and-opt-into-breaking-changes only.

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§

The internal buffer type used by this bind collector
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.