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§

Sets values of Query request params.

Trait Implementations§

Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
It should convert a struct into an array of bytes.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.