Enum cdrs::query::QueryValues[][src]

pub enum QueryValues {
    SimpleValues(Vec<Value>),
    NamedValues(HashMap<String, Value>),
}

Enum that represents two types of query values:

  • values without name
  • values with names

Variants

Methods

impl QueryValues
[src]

It returns true if query values is with names and false otherwise.

It return number of values.

Trait Implementations

impl Debug for QueryValues
[src]

Formats the value using the given formatter. Read more

impl Clone for QueryValues
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Into<Value> + Clone> From<Vec<T>> for QueryValues
[src]

It converts values from Vec to query values without names QueryValues::SimpleValues.

impl<'a, T: Into<Value> + Clone> From<&'a [T]> for QueryValues
[src]

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]

It converts values from HashMap to query values with names QueryValues::NamedValues.

impl IntoBytes for QueryValues
[src]

It should convert a struct into an array of bytes.

Auto Trait Implementations

impl Send for QueryValues

impl Sync for QueryValues