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<i32>,
pub paging_state: Option<CBytes>,
pub serial_consistency: Option<Consistency>,
pub timestamp: Option<CLong>,
}
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<CLong>
Timestamp.
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]>) -> Result<QueryParams, Error>
fn from_cursor(cursor: &mut Cursor<&[u8]>) -> Result<QueryParams, Error>
It should return an implementor from an io::Cursor
over an array 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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more