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) -> Self
pub fn with_consistency(self, consistency: Consistency) -> Self
Sets new query consistency
Sourcepub fn with_flags(self, flags: QueryFlags) -> Self
pub fn with_flags(self, flags: QueryFlags) -> Self
Sets new flags.
Sourcepub fn with_values(self, values: QueryValues) -> Self
pub fn with_values(self, values: QueryValues) -> Self
Sets new query values.
Sourcepub fn with_names(self, with_names: bool) -> Self
pub fn with_names(self, with_names: bool) -> Self
Sets the “with names for values” flag
Sourcepub fn with_page_size(self, size: CInt) -> Self
pub fn with_page_size(self, size: CInt) -> Self
Sets new query consistency.
Sourcepub fn with_paging_state(self, state: CBytes) -> Self
pub fn with_paging_state(self, state: CBytes) -> Self
Sets new query consistency.
Sourcepub fn with_serial_consistency(self, serial_consistency: Consistency) -> Self
pub fn with_serial_consistency(self, serial_consistency: Consistency) -> Self
Sets new serial consistency.
Sourcepub fn with_timestamp(self, timestamp: CLong) -> Self
pub fn with_timestamp(self, timestamp: CLong) -> Self
Sets new timestamp.
Sourcepub fn with_keyspace(self, keyspace: String) -> Self
pub fn with_keyspace(self, keyspace: String) -> Self
Overrides used keyspace.
Sourcepub fn with_now_in_seconds(self, now_in_seconds: CInt) -> Self
pub fn with_now_in_seconds(self, now_in_seconds: CInt) -> Self
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
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