[][src]Enum aw_query::datatype::DataType

pub enum DataType {
    None(),
    Bool(bool),
    Number(f64),
    String(String),
    Event(Event),
    List(Vec<DataType>),
    Dict(HashMap<String, DataType>),
    Function(Stringfn(args: Vec<DataType>, env: &VarEnv, ds: &Datastore) -> Result<DataType, QueryError>),
}

Variants

None()
Bool(bool)
Number(f64)
String(String)
Event(Event)
List(Vec<DataType>)
Function(Stringfn(args: Vec<DataType>, env: &VarEnv, ds: &Datastore) -> Result<DataType, QueryError>)

Implementations

impl DataType[src]

pub fn query_eq(&self, other: &DataType) -> Result<bool, QueryError>[src]

Trait Implementations

impl Clone for DataType[src]

impl Debug for DataType[src]

impl PartialEq<DataType> for DataType[src]

impl Serialize for DataType[src]

impl<'_> TryFrom<&'_ DataType> for Vec<DataType>[src]

type Error = QueryError

The type returned in the event of a conversion error.

impl<'_> TryFrom<&'_ DataType> for String[src]

type Error = QueryError

The type returned in the event of a conversion error.

impl<'_> TryFrom<&'_ DataType> for Rule[src]

type Error = QueryError

The type returned in the event of a conversion error.

impl<'_> TryFrom<&'_ DataType> for Vec<String>[src]

type Error = QueryError

The type returned in the event of a conversion error.

impl<'_> TryFrom<&'_ DataType> for Vec<Event>[src]

type Error = QueryError

The type returned in the event of a conversion error.

impl<'_> TryFrom<&'_ DataType> for Vec<(String, Rule)>[src]

type Error = QueryError

The type returned in the event of a conversion error.

impl<'_> TryFrom<&'_ DataType> for Vec<(Vec<String>, Rule)>[src]

type Error = QueryError

The type returned in the event of a conversion error.

impl<'_> TryFrom<&'_ DataType> for f64[src]

type Error = QueryError

The type returned in the event of a conversion error.

impl<'_> TryFrom<&'_ DataType> for usize[src]

type Error = QueryError

The type returned in the event of a conversion error.

impl<'_> TryFrom<&'_ DataType> for Value[src]

type Error = QueryError

The type returned in the event of a conversion error.

impl<'_> TryFrom<&'_ DataType> for Vec<Value>[src]

type Error = QueryError

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

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

impl<T, I> AsResult<T, I> for T where
    I: Input, 

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> IntoCollection<T> for T

impl<T> Same<T> for T

type Output = T

Should always be Self

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.

impl<T> Typeable for T where
    T: Any

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,