Struct cdrs_tokio::query::QueryParamsBuilder
source · pub struct QueryParamsBuilder { /* private fields */ }
Implementations§
source§impl QueryParamsBuilder
impl QueryParamsBuilder
sourcepub fn new() -> QueryParamsBuilder
pub fn new() -> QueryParamsBuilder
Factory function that returns new QueryBuilder
.
sourcepub fn with_consistency(self, consistency: Consistency) -> QueryParamsBuilder
pub fn with_consistency(self, consistency: Consistency) -> QueryParamsBuilder
Sets new query consistency
sourcepub fn with_flags(self, flags: QueryFlags) -> QueryParamsBuilder
pub fn with_flags(self, flags: QueryFlags) -> QueryParamsBuilder
Sets new flags.
sourcepub fn with_values(self, values: QueryValues) -> QueryParamsBuilder
pub fn with_values(self, values: QueryValues) -> QueryParamsBuilder
Sets new query values.
sourcepub fn with_names(self, with_names: bool) -> QueryParamsBuilder
pub fn with_names(self, with_names: bool) -> QueryParamsBuilder
Sets the “with names for values” flag
sourcepub fn with_page_size(self, size: i32) -> QueryParamsBuilder
pub fn with_page_size(self, size: i32) -> QueryParamsBuilder
Sets new query consistency.
sourcepub fn with_paging_state(self, state: CBytes) -> QueryParamsBuilder
pub fn with_paging_state(self, state: CBytes) -> QueryParamsBuilder
Sets new query consistency.
sourcepub fn with_serial_consistency(
self,
serial_consistency: Consistency
) -> QueryParamsBuilder
pub fn with_serial_consistency( self, serial_consistency: Consistency ) -> QueryParamsBuilder
Sets new serial consistency.
sourcepub fn with_timestamp(self, timestamp: i64) -> QueryParamsBuilder
pub fn with_timestamp(self, timestamp: i64) -> QueryParamsBuilder
Sets new timestamp.
sourcepub fn with_keyspace(self, keyspace: String) -> QueryParamsBuilder
pub fn with_keyspace(self, keyspace: String) -> QueryParamsBuilder
Overrides used keyspace.
sourcepub fn with_now_in_seconds(self, now_in_seconds: i32) -> QueryParamsBuilder
pub fn with_now_in_seconds(self, now_in_seconds: i32) -> QueryParamsBuilder
Sets “now” in seconds.
sourcepub fn build(self) -> QueryParams
pub fn build(self) -> QueryParams
Finalizes query building process and returns query itself
Trait Implementations§
source§impl Debug for QueryParamsBuilder
impl Debug for QueryParamsBuilder
source§impl Default for QueryParamsBuilder
impl Default for QueryParamsBuilder
source§fn default() -> QueryParamsBuilder
fn default() -> QueryParamsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for QueryParamsBuilder
impl RefUnwindSafe for QueryParamsBuilder
impl Send for QueryParamsBuilder
impl Sync for QueryParamsBuilder
impl Unpin for QueryParamsBuilder
impl UnwindSafe for QueryParamsBuilder
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