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>> for QueryValues
impl<S: ToString, V: Into<Value>> 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: Into<Value>> From<Vec<T>> for QueryValues
impl<T: Into<Value>> 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§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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more