Struct cdrs::query::QueryParams
source · pub struct QueryParams {
pub consistency: Consistency,
pub flags: Vec<QueryFlags>,
pub with_names: Option<bool>,
pub values: Option<QueryValues>,
pub page_size: Option<i32>,
pub paging_state: Option<CBytes>,
pub serial_consistency: Option<Consistency>,
pub timestamp: Option<i64>,
}
Expand description
Parameters of Query for query operation.
Fields§
§consistency: Consistency
Cassandra consistency level.
flags: Vec<QueryFlags>
Array of query flags.
with_names: Option<bool>
Were values provided with names
values: Option<QueryValues>
Array of values.
page_size: Option<i32>
Page size.
paging_state: Option<CBytes>
Array of bytes which represents paging state.
serial_consistency: Option<Consistency>
Serial Consistency
.
timestamp: Option<i64>
Timestamp.
Implementations§
source§impl QueryParams
impl QueryParams
sourcepub fn set_values(&mut self, values: QueryValues)
pub fn set_values(&mut self, values: QueryValues)
Sets values of Query request params.
Trait Implementations§
source§impl Debug for QueryParams
impl Debug for QueryParams
source§impl Default for QueryParams
impl Default for QueryParams
source§fn default() -> QueryParams
fn default() -> QueryParams
Returns the “default value” for a type. Read more
source§impl IntoBytes for QueryParams
impl IntoBytes for QueryParams
source§fn into_cbytes(&self) -> Vec<u8>
fn into_cbytes(&self) -> Vec<u8>
It should convert a struct into an array of bytes.