Enum cdrs_tokio::query::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> From<&[T]> for QueryValues
impl<T> 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, V> From<HashMap<S, V>> for QueryValues
impl<S, V> From<HashMap<S, V>> 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> From<Vec<T>> for QueryValues
impl<T> From<Vec<T>> 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 for QueryValues
impl PartialEq 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 ==
.source§impl Serialize for QueryValues
impl Serialize for QueryValues
impl Eq for QueryValues
impl StructuralPartialEq for QueryValues
Auto Trait Implementations§
impl Freeze for QueryValues
impl RefUnwindSafe for QueryValues
impl Send for QueryValues
impl Sync for QueryValues
impl Unpin for QueryValues
impl UnwindSafe for QueryValues
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