Struct cassandra_protocol::frame::message_batch::BodyReqBatch
source · pub struct BodyReqBatch {
pub batch_type: BatchType,
pub queries: Vec<BatchQuery>,
pub consistency: Consistency,
pub serial_consistency: Option<Consistency>,
pub timestamp: Option<CLong>,
pub keyspace: Option<String>,
pub now_in_seconds: Option<CInt>,
}Fields§
§batch_type: BatchType§queries: Vec<BatchQuery>§consistency: Consistency§serial_consistency: Option<Consistency>§timestamp: Option<CLong>§keyspace: Option<String>§now_in_seconds: Option<CInt>Implementations§
source§impl BodyReqBatch
impl BodyReqBatch
pub fn new( batch_type: BatchType, queries: Vec<BatchQuery>, consistency: Consistency, serial_consistency: Option<Consistency>, timestamp: Option<CLong>, keyspace: Option<String>, now_in_seconds: Option<CInt> ) -> BodyReqBatch
Trait Implementations§
source§impl Clone for BodyReqBatch
impl Clone for BodyReqBatch
source§fn clone(&self) -> BodyReqBatch
fn clone(&self) -> BodyReqBatch
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 BodyReqBatch
impl Debug for BodyReqBatch
source§impl FromCursor for BodyReqBatch
impl FromCursor for BodyReqBatch
source§impl PartialEq for BodyReqBatch
impl PartialEq for BodyReqBatch
source§fn eq(&self, other: &BodyReqBatch) -> bool
fn eq(&self, other: &BodyReqBatch) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for BodyReqBatch
impl Serialize for BodyReqBatch
impl Eq for BodyReqBatch
impl StructuralPartialEq for BodyReqBatch
Auto Trait Implementations§
impl Freeze for BodyReqBatch
impl RefUnwindSafe for BodyReqBatch
impl Send for BodyReqBatch
impl Sync for BodyReqBatch
impl Unpin for BodyReqBatch
impl UnwindSafe for BodyReqBatch
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> 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