Enum cdrs::query::QueryValues [−][src]
Enum that represents two types of query values:
- values without name
- values with names
Variants
SimpleValues(Vec<Value>)
NamedValues(HashMap<String, Value>)
Methods
impl QueryValues
[src]
impl QueryValues
pub fn with_names(&self) -> bool
[src]
pub fn with_names(&self) -> bool
It returns true
if query values is with names and false
otherwise.
pub fn len(&self) -> usize
[src]
pub fn len(&self) -> usize
It return number of values.
Trait Implementations
impl Debug for QueryValues
[src]
impl Debug for QueryValues
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for QueryValues
[src]
impl Clone for QueryValues
fn clone(&self) -> QueryValues
[src]
fn clone(&self) -> QueryValues
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<T: Into<Value> + Clone> From<Vec<T>> for QueryValues
[src]
impl<T: Into<Value> + Clone> From<Vec<T>> for QueryValues
fn from(values: Vec<T>) -> QueryValues
[src]
fn from(values: Vec<T>) -> QueryValues
It converts values from Vec
to query values without names QueryValues::SimpleValues
.
impl<'a, T: Into<Value> + Clone> From<&'a [T]> for QueryValues
[src]
impl<'a, T: Into<Value> + Clone> From<&'a [T]> for QueryValues
fn from(values: &'a [T]) -> QueryValues
[src]
fn from(values: &'a [T]) -> QueryValues
It converts values from Vec
to query values without names QueryValues::SimpleValues
.
impl<S: ToString + Hash + Eq, V: Into<Value> + Clone> From<HashMap<S, V>> for QueryValues
[src]
impl<S: ToString + Hash + Eq, V: Into<Value> + Clone> From<HashMap<S, V>> for QueryValues
fn from(values: HashMap<S, V>) -> QueryValues
[src]
fn from(values: HashMap<S, V>) -> QueryValues
It converts values from HashMap
to query values with names QueryValues::NamedValues
.
impl IntoBytes for QueryValues
[src]
impl IntoBytes for QueryValues
fn into_cbytes(&self) -> Vec<u8>
[src]
fn into_cbytes(&self) -> Vec<u8>
It should convert a struct into an array of bytes.
Auto Trait Implementations
impl Send for QueryValues
impl Send for QueryValues
impl Sync for QueryValues
impl Sync for QueryValues