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
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]
impl<DB: Backend + TypeMetadata> RawBytesBindCollector<DB>
Trait Implementations
impl<DB: Debug + Backend + TypeMetadata> Debug for RawBytesBindCollector<DB> where
DB::TypeMetadata: Debug,
[src]
impl<DB: Debug + Backend + TypeMetadata> Debug for RawBytesBindCollector<DB> where
DB::TypeMetadata: Debug,
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<DB: Backend + TypeMetadata> BindCollector<DB> for RawBytesBindCollector<DB>
[src]
impl<DB: Backend + TypeMetadata> BindCollector<DB> for RawBytesBindCollector<DB>
fn push_bound_value<T, U>(
&mut self,
bind: &U,
metadata_lookup: &DB::MetadataLookup
) -> QueryResult<()> where
DB: HasSqlType<T>,
U: ToSql<T, DB>,
[src]
fn push_bound_value<T, U>(
&mut self,
bind: &U,
metadata_lookup: &DB::MetadataLookup
) -> QueryResult<()> where
DB: HasSqlType<T>,
U: ToSql<T, DB>,
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> Send for RawBytesBindCollector<DB> where
<DB as TypeMetadata>::TypeMetadata: Send,
impl<DB> Sync for RawBytesBindCollector<DB> where
<DB as TypeMetadata>::TypeMetadata: Sync,
impl<DB> Sync for RawBytesBindCollector<DB> where
<DB as TypeMetadata>::TypeMetadata: Sync,