pub struct QueryParams {
pub consistency: Consistency,
pub with_names: bool,
pub values: Option<QueryValues>,
pub page_size: Option<CInt>,
pub paging_state: Option<CBytes>,
pub serial_consistency: Option<Consistency>,
pub timestamp: Option<CLong>,
pub keyspace: Option<String>,
pub now_in_seconds: Option<CInt>,
}
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<CInt>
Page size.
paging_state: Option<CBytes>
Array of bytes which represents paging state.
serial_consistency: Option<Consistency>
Serial Consistency
.
timestamp: Option<CLong>
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<CInt>
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 duplicate 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§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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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