pub struct BatchQueryBuilder { /* private fields */ }
Implementations§
Source§impl BatchQueryBuilder
impl BatchQueryBuilder
pub fn new() -> BatchQueryBuilder
pub fn with_batch_type(self, batch_type: BatchType) -> Self
Sourcepub fn add_query<T: Into<String>>(self, query: T, values: QueryValues) -> Self
pub fn add_query<T: Into<String>>(self, query: T, values: QueryValues) -> Self
Add a query (non-prepared one)
Sourcepub fn add_query_prepared(
self,
query: &PreparedQuery,
values: QueryValues,
) -> Self
pub fn add_query_prepared( self, query: &PreparedQuery, values: QueryValues, ) -> Self
Add a query (prepared one)
pub fn clear_queries(self) -> Self
pub fn with_consistency(self, consistency: Consistency) -> Self
pub fn with_serial_consistency(self, serial_consistency: Consistency) -> Self
pub fn with_timestamp(self, timestamp: CLong) -> Self
pub fn with_keyspace(self, keyspace: String) -> Self
pub fn with_now_in_seconds(self, now_in_seconds: CInt) -> Self
pub fn build(self) -> CResult<BodyReqBatch>
Trait Implementations§
Source§impl Debug for BatchQueryBuilder
impl Debug for BatchQueryBuilder
Auto Trait Implementations§
impl Freeze for BatchQueryBuilder
impl RefUnwindSafe for BatchQueryBuilder
impl Send for BatchQueryBuilder
impl Sync for BatchQueryBuilder
impl Unpin for BatchQueryBuilder
impl UnwindSafe for BatchQueryBuilder
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