Trait scylla_cql::types::serialize::raw_batch::RawBatchValues

source ·
pub trait RawBatchValues {
    type RawBatchValuesIter<'r>: RawBatchValuesIterator<'r>
       where Self: 'r;

    // Required method
    fn batch_values_iter(&self) -> Self::RawBatchValuesIter<'_>;
}
Expand description

Represents a list of sets of values for a batch statement.

Unlike BatchValues), it doesn’t require type information from the statements of the batch in order to be serialized.

This is a lower level trait than BatchValues) and is only used for interaction between the code in scylla and scylla-cql crates. If you are a regular user of the driver, you shouldn’t care about this trait at all.

Required Associated Types§

source

type RawBatchValuesIter<'r>: RawBatchValuesIterator<'r> where Self: 'r

An Iterator-like object over the values from the parent BatchValues object.

Required Methods§

source

fn batch_values_iter(&self) -> Self::RawBatchValuesIter<'_>

Returns an iterator over the data contained in this object.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl RawBatchValues for Vec<SerializedValues>

§

type RawBatchValuesIter<'r> = Iter<'r, SerializedValues> where Self: 'r

source§

fn batch_values_iter(&self) -> Self::RawBatchValuesIter<'_>

Implementors§

source§

impl<'ctx, BV, CTX> RawBatchValues for RawBatchValuesAdapter<BV, CTX>
where BV: BatchValues, CTX: Iterator<Item = RowSerializationContext<'ctx>> + Clone,