Enum ql2::datum::DatumType[][src]

#[repr(i32)]pub enum DatumType {
    RNull,
    RBool,
    RNum,
    RStr,
    RArray,
    RObject,
    RJson,
}

Variants

RNull
RBool
RNum

a double

RStr
RArray
RObject
RJson

This DatumType will only be used if [accepts_r_json] is set to true in [Query]. [r_str] will be filled with a JSON encoding of the [Datum].

uses r_str

Implementations

impl DatumType[src]

pub fn is_valid(value: i32) -> bool[src]

Returns true if value is a variant of DatumType.

pub fn from_i32(value: i32) -> Option<DatumType>[src]

Converts an i32 to a DatumType, or None if value is not a valid variant.

Trait Implementations

impl Clone for DatumType[src]

impl Copy for DatumType[src]

impl Debug for DatumType[src]

impl Default for DatumType[src]

impl<'de> Deserialize<'de> for DatumType[src]

impl Eq for DatumType[src]

impl Hash for DatumType[src]

impl Ord for DatumType[src]

impl PartialEq<DatumType> for DatumType[src]

impl PartialOrd<DatumType> for DatumType[src]

impl Serialize for DatumType[src]

impl StructuralEq for DatumType[src]

impl StructuralPartialEq for DatumType[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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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.