Struct cassandra_protocol::frame::frame_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 more
sourceimpl 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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &BatchQuery) -> bool
fn ne(&self, other: &BatchQuery) -> bool
This method tests for !=
.
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more