Enum cassandra_protocol::query::query_values::QueryValues
source · pub enum QueryValues {
SimpleValues(Vec<Value>),
NamedValues(HashMap<String, Value>),
}
Expand description
Enum that represents two types of query values:
- values without name
- values with names
Variants§
Implementations§
Trait Implementations§
source§impl Clone for QueryValues
impl Clone for QueryValues
source§fn clone(&self) -> QueryValues
fn clone(&self) -> QueryValues
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 QueryValues
impl Debug for QueryValues
source§impl<T: Into<Value> + Clone> From<&[T]> for QueryValues
impl<T: Into<Value> + Clone> From<&[T]> for QueryValues
source§fn from(values: &[T]) -> QueryValues
fn from(values: &[T]) -> QueryValues
Converts values from Vec
to query values without names QueryValues::SimpleValues
.
source§impl<S: ToString, V: Into<Value>> From<HashMap<S, V, RandomState>> for QueryValues
impl<S: ToString, V: Into<Value>> From<HashMap<S, V, RandomState>> for QueryValues
source§fn from(values: HashMap<S, V>) -> QueryValues
fn from(values: HashMap<S, V>) -> QueryValues
Converts values from HashMap
to query values with names QueryValues::NamedValues
.
source§impl<T: Into<Value>> From<Vec<T, Global>> for QueryValues
impl<T: Into<Value>> From<Vec<T, Global>> for QueryValues
source§fn from(values: Vec<T>) -> QueryValues
fn from(values: Vec<T>) -> QueryValues
Converts values from Vec
to query values without names QueryValues::SimpleValues
.
source§impl PartialEq<QueryValues> for QueryValues
impl PartialEq<QueryValues> for QueryValues
source§fn eq(&self, other: &QueryValues) -> bool
fn eq(&self, other: &QueryValues) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.