Struct cassandra_protocol::query::query_params::QueryParams
source · [−]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
sourceimpl Clone for QueryParams
impl Clone for QueryParams
sourcefn clone(&self) -> QueryParams
fn clone(&self) -> QueryParams
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for QueryParams
impl Debug for QueryParams
sourceimpl Default for QueryParams
impl Default for QueryParams
sourcefn default() -> QueryParams
fn default() -> QueryParams
Returns the “default value” for a type. Read more
sourceimpl FromCursor for QueryParams
impl FromCursor for QueryParams
sourcefn 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.
sourceimpl PartialEq<QueryParams> for QueryParams
impl PartialEq<QueryParams> for QueryParams
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &QueryParams) -> bool
fn ne(&self, other: &QueryParams) -> bool
This method tests for !=
.
sourceimpl Serialize for QueryParams
impl Serialize for QueryParams
impl Eq for QueryParams
impl StructuralEq for QueryParams
impl StructuralPartialEq for QueryParams
Auto Trait Implementations
impl RefUnwindSafe for QueryParams
impl Send for QueryParams
impl Sync for QueryParams
impl Unpin for QueryParams
impl UnwindSafe for QueryParams
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more