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