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

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

SimpleValues(Vec<Value>)
NamedValues(HashMap<String, Value>)

Methods

impl QueryValues[src]

pub fn with_names(&self) -> bool[src]

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

pub fn len(&self) -> usize[src]

It return number of values.

Trait Implementations

impl Clone for QueryValues[src]

impl Debug for QueryValues[src]

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

fn from(values: &'a [T]) -> 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, RandomState>> for QueryValues[src]

fn from(values: HashMap<S, V>) -> QueryValues[src]

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

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

fn from(values: Vec<T>) -> QueryValues[src]

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

impl IntoBytes for QueryValues[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.