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 const 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 duplicate 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 for BatchQuery
impl PartialEq for BatchQuery
Source§impl Serialize for BatchQuery
impl Serialize for BatchQuery
impl Eq for BatchQuery
impl StructuralPartialEq for BatchQuery
Auto Trait Implementations§
impl Freeze for BatchQuery
impl RefUnwindSafe for BatchQuery
impl Send for BatchQuery
impl Sync for BatchQuery
impl Unpin for BatchQuery
impl UnwindSafe for BatchQuery
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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