Enum cassandra_protocol::query::query_values::QueryValues
source · [−]Expand description
Enum that represents two types of query values:
- values without name
- values with names
Variants
SimpleValues(Vec<Value>)
NamedValues(HashMap<String, Value>)
Implementations
Trait Implementations
sourceimpl Clone for QueryValues
impl Clone for QueryValues
sourcefn clone(&self) -> QueryValues
fn clone(&self) -> QueryValues
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 moresourceimpl Debug for QueryValues
impl Debug for QueryValues
sourceimpl<T: Into<Value> + Clone> From<&[T]> for QueryValues
impl<T: Into<Value> + Clone> From<&[T]> for QueryValues
sourcefn from(values: &[T]) -> QueryValues
fn from(values: &[T]) -> QueryValues
Converts values from Vec
to query values without names QueryValues::SimpleValues
.
sourceimpl<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
sourcefn from(values: HashMap<S, V>) -> QueryValues
fn from(values: HashMap<S, V>) -> QueryValues
Converts values from HashMap
to query values with names QueryValues::NamedValues
.
sourceimpl<T: Into<Value>> From<Vec<T, Global>> for QueryValues
impl<T: Into<Value>> From<Vec<T, Global>> for QueryValues
sourcefn from(values: Vec<T>) -> QueryValues
fn from(values: Vec<T>) -> QueryValues
Converts values from Vec
to query values without names QueryValues::SimpleValues
.
sourceimpl PartialEq<QueryValues> for QueryValues
impl PartialEq<QueryValues> for QueryValues
sourcefn eq(&self, other: &QueryValues) -> bool
fn eq(&self, other: &QueryValues) -> bool
sourceimpl Serialize for QueryValues
impl Serialize for QueryValues
impl Eq for QueryValues
impl StructuralEq for QueryValues
impl StructuralPartialEq for QueryValues
Auto Trait Implementations
impl RefUnwindSafe for QueryValues
impl Send for QueryValues
impl Sync for QueryValues
impl Unpin for QueryValues
impl UnwindSafe for QueryValues
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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