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
sourceimpl BatchQuery
impl BatchQuery
pub fn new(subject: BatchQuerySubj, values: QueryValues) -> BatchQuery
Trait Implementations
sourceimpl Clone for BatchQuery
impl Clone for BatchQuery
sourcefn clone(&self) -> BatchQuery
fn clone(&self) -> BatchQuery
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for BatchQuery
impl Debug for BatchQuery
sourceimpl FromCursor for BatchQuery
impl FromCursor for BatchQuery
sourceimpl PartialEq<BatchQuery> for BatchQuery
impl PartialEq<BatchQuery> for BatchQuery
sourcefn eq(&self, other: &BatchQuery) -> bool
fn eq(&self, other: &BatchQuery) -> bool
sourceimpl Serialize for BatchQuery
impl Serialize for BatchQuery
impl Eq for BatchQuery
impl StructuralEq for BatchQuery
impl StructuralPartialEq for BatchQuery
Auto Trait Implementations
impl RefUnwindSafe for BatchQuery
impl Send for BatchQuery
impl Sync for BatchQuery
impl Unpin for BatchQuery
impl UnwindSafe for BatchQuery
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more