Struct cdrs_tokio::query::QueryParams
source · pub struct QueryParams {
pub consistency: Consistency,
pub with_names: bool,
pub values: Option<QueryValues>,
pub page_size: Option<i32>,
pub paging_state: Option<CBytes>,
pub serial_consistency: Option<Consistency>,
pub timestamp: Option<i64>,
pub keyspace: Option<String>,
pub now_in_seconds: Option<i32>,
}
Expand description
Parameters of Query for query operation.
Fields§
§consistency: Consistency
Cassandra consistency level.
with_names: 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.
keyspace: Option<String>
Keyspace indicating the keyspace that the query should be executed in. It supersedes the keyspace that the connection is bound to, if any.
now_in_seconds: Option<i32>
Represents the current time (now) for the query. Affects TTL cell liveness in read queries and local deletion time for tombstones and TTL cells in update requests.
Trait Implementations§
source§impl Clone for QueryParams
impl Clone for QueryParams
source§fn clone(&self) -> QueryParams
fn clone(&self) -> QueryParams
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§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 FromCursor for QueryParams
impl FromCursor for QueryParams
source§fn from_cursor(
cursor: &mut Cursor<&[u8]>,
version: Version
) -> Result<QueryParams, Error>
fn from_cursor( cursor: &mut Cursor<&[u8]>, version: Version ) -> Result<QueryParams, Error>
Tries to parse Self from a cursor of bytes.
source§impl PartialEq for QueryParams
impl PartialEq for QueryParams
source§fn eq(&self, other: &QueryParams) -> bool
fn eq(&self, other: &QueryParams) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for QueryParams
impl Serialize for QueryParams
impl Eq for QueryParams
impl StructuralPartialEq for QueryParams
Auto Trait Implementations§
impl Freeze for QueryParams
impl RefUnwindSafe for QueryParams
impl Send for QueryParams
impl Sync for QueryParams
impl Unpin for QueryParams
impl UnwindSafe for QueryParams
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