Struct cassandra_cpp::Batch

source ·
pub struct Batch(_);
Expand description

A group of statements that are executed as a single batch. Note: Batches are not supported by the binary protocol version 1.

Implementations§

Creates a new batch statement with batch type.

Sets the batch’s consistency level

Sets the batch’s serial consistency level.

Default: Not set

Sets the batch’s timestamp.

Sets the batch’s retry policy.

Sets the batch’s custom payload.

Adds a statement to a batch.

Trait Implementations§

Formats the value using the given formatter. Read more

Frees a batch instance. Batches can be immediately freed after being executed.

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.

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.