Struct cassandra_protocol::frame::message_batch::BatchQuery
source · pub struct BatchQuery {
pub subject: BatchQuerySubj,
pub values: QueryValues,
}
Expand description
The structure that represents a query to be batched.
Fields§
§subject: BatchQuerySubj
Contains either id of prepared query or a query itself.
values: QueryValues
Important note: QueryValues::NamedValues does not work and should not be used for batches. It is specified in a way that makes it impossible for the server to implement. This will be fixed in a future version of the native protocol. See https://issues.apache.org/jira/browse/CASSANDRA-10246 for more details
Implementations§
source§impl BatchQuery
impl BatchQuery
pub fn new(subject: BatchQuerySubj, values: QueryValues) -> BatchQuery
Trait Implementations§
source§impl Clone for BatchQuery
impl Clone for BatchQuery
source§fn clone(&self) -> BatchQuery
fn clone(&self) -> BatchQuery
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for BatchQuery
impl Debug for BatchQuery
source§impl FromCursor for BatchQuery
impl FromCursor for BatchQuery
source§impl PartialEq<BatchQuery> for BatchQuery
impl PartialEq<BatchQuery> for BatchQuery
source§fn eq(&self, other: &BatchQuery) -> bool
fn eq(&self, other: &BatchQuery) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.