pub struct Batch<'b, Statement, Values>{
pub statements: Cow<'b, [Statement]>,
pub batch_type: BatchType,
pub consistency: Consistency,
pub serial_consistency: Option<SerialConsistency>,
pub timestamp: Option<i64>,
pub values: Values,
}Expand description
CQL protocol-level representation of a BATCH request, used to execute
a batch of statements (prepared, unprepared, or a mix of both).
Fields§
§statements: Cow<'b, [Statement]>The statements in the batch.
batch_type: BatchTypeThe type of the batch.
consistency: ConsistencyThe consistency level for the batch.
serial_consistency: Option<SerialConsistency>The serial consistency level for the batch, if any.
timestamp: Option<i64>The client-side-assigned timestamp for the batch, if any.
values: ValuesThe bound values for the batch statements.
Trait Implementations§
Source§impl<'b> DeserializableRequest for Batch<'b, BatchStatement<'b>, Vec<SerializedValues>>
impl<'b> DeserializableRequest for Batch<'b, BatchStatement<'b>, Vec<SerializedValues>>
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, RequestDeserializationError>
fn deserialize(buf: &mut &[u8]) -> Result<Self, RequestDeserializationError>
Deserializes the request from the provided buffer.
Source§impl<Statement, Values> SerializableRequest for Batch<'_, Statement, Values>
impl<Statement, Values> SerializableRequest for Batch<'_, Statement, Values>
Auto Trait Implementations§
impl<'b, Statement, Values> Freeze for Batch<'b, Statement, Values>
impl<'b, Statement, Values> RefUnwindSafe for Batch<'b, Statement, Values>
impl<'b, Statement, Values> Send for Batch<'b, Statement, Values>
impl<'b, Statement, Values> Sync for Batch<'b, Statement, Values>
impl<'b, Statement, Values> Unpin for Batch<'b, Statement, Values>
impl<'b, Statement, Values> UnwindSafe for Batch<'b, Statement, Values>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more