[][src]Enum rustorm_dao::value::Value

pub enum Value {
    Nil,
    Bool(bool),
    Tinyint(i8),
    Smallint(i16),
    Int(i32),
    Bigint(i64),
    Float(f32),
    Double(f64),
    BigDecimal(BigDecimal),
    Blob(Vec<u8>),
    ImageUri(String),
    Char(char),
    Text(String),
    Json(String),
    Uuid(Uuid),
    Date(NaiveDate),
    Time(NaiveTime),
    DateTime(NaiveDateTime),
    Timestamp(DateTime<Utc>),
    Interval(Interval),
    Point(Point<f64>),
    Array(Array),
}

Generic value storage 32 byte in size Some contains the same value container, but the variant is more important for type hinting and view presentation hinting purposes

Variants

Nil
Bool(bool)
Tinyint(i8)
Smallint(i16)
Int(i32)
Bigint(i64)
Float(f32)
Double(f64)
BigDecimal(BigDecimal)
Blob(Vec<u8>)
ImageUri(String)
Char(char)
Text(String)
Json(String)
Uuid(Uuid)
Date(NaiveDate)
Time(NaiveTime)
DateTime(NaiveDateTime)
Timestamp(DateTime<Utc>)
Interval(Interval)
Point(Point<f64>)
Array(Array)

Methods

impl Value[src]

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

Trait Implementations

impl Clone for Value[src]

impl Debug for Value[src]

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

impl Display for Value[src]

impl<T> From<T> for Value where
    T: ToValue
[src]

impl PartialEq<Value> for Value[src]

impl Serialize for Value[src]

impl StructuralPartialEq for Value[src]

Auto Trait Implementations

impl RefUnwindSafe for Value

impl Send for Value

impl Sync for Value

impl Unpin for Value

impl UnwindSafe for Value

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: 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> ToString for T where
    T: Display + ?Sized
[src]

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.