Enum rustorm::dao::Value [] [src]

pub enum Value {
    Bool(bool),
    I8(i8),
    I16(i16),
    I32(i32),
    I64(i64),
    U8(u8),
    U16(u16),
    U32(u32),
    U64(u64),
    F32(f32),
    F64(f64),
    String(String),
    VecU8(Vec<u8>),
    Object(BTreeMap<String, Value>),
    Json(Json),
    Uuid(Uuid),
    DateTime(DateTime<UTC>),
    NaiveDate(NaiveDate),
    NaiveTime(NaiveTime),
    NaiveDateTime(NaiveDateTime),
    Null,
}

supported generic datatypes for an ORM

Variants

Bool
I8
I16
I32
I64
U8
U16
U32
U64
F32
F64
String
VecU8
Object
Json
Uuid
DateTime
NaiveDate
NaiveTime
NaiveDateTime
Null

Trait Implementations

impl Encodable for Value

custom implementation for value encoding to json, does not include unnecessary enum variants fields.

fn encode<S: Encoder>(&self, s: &mut S) -> Result<(), S::Error>

impl ToJson for Value

fn to_json(&self) -> Json

impl Display for Value

fn fmt(&self, f: &mut Formatter) -> Result

impl ToValue for Value

fn to_db_type(&self) -> Value

Derived Implementations

impl Debug for Value

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Clone for Value

fn clone(&self) -> Value

fn clone_from(&mut self, source: &Self)

impl PartialEq for Value

fn eq(&self, __arg_0: &Value) -> bool

fn ne(&self, __arg_0: &Value) -> bool