Enum rustorm::Value[][src]

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

Trait Implementations

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

Deserialize this value from the given Serde deserializer. Read more

impl Serialize for Value
[src]

Serialize this value into the given Serde serializer. Read more

impl<'a> TryFrom<&'a Value> for Option<String>
[src]

try from to Option

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<'a> TryFrom<&'a Value> for Option<Vec<u8>>
[src]

try from to Option

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<'a> TryFrom<&'a Value> for Option<char>
[src]

try from to Option

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<'a> TryFrom<&'a Value> for i64
[src]

try from to owned

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<'a> TryFrom<&'a Value> for bool
[src]

try from to owned

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<'a> TryFrom<&'a Value> for Option<NaiveDate>
[src]

try from to Option

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<'a> TryFrom<&'a Value> for String
[src]

Char can be casted into String and they havea separate implementation for extracting data

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<'a> TryFrom<&'a Value> for Uuid
[src]

try from to owned

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<'a> TryFrom<&'a Value> for Option<i8>
[src]

try from to Option

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<'a> TryFrom<&'a Value> for char
[src]

try from to owned

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<'a> TryFrom<&'a Value> for Option<bool>
[src]

try from to Option

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<'a> TryFrom<&'a Value> for Vec<u8>
[src]

try from to owned

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<'a> TryFrom<&'a Value> for Option<i16>
[src]

try from to Option

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<'a> TryFrom<&'a Value> for i8
[src]

try from to owned

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<'a> TryFrom<&'a Value> for f32
[src]

try from to owned

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<'a> TryFrom<&'a Value> for i32
[src]

try from to owned

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<'a> TryFrom<&'a Value> for f64
[src]

try from to owned

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<'a> TryFrom<&'a Value> for Option<i32>
[src]

try from to Option

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<'a> TryFrom<&'a Value> for Option<f64>
[src]

try from to Option

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<'a> TryFrom<&'a Value> for Option<DateTime<Utc>>
[src]

try from to Option

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<'a> TryFrom<&'a Value> for Option<f32>
[src]

try from to Option

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<'a> TryFrom<&'a Value> for DateTime<Utc>
[src]

try from to owned

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<'a> TryFrom<&'a Value> for i16
[src]

try from to owned

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<'a> TryFrom<&'a Value> for Option<Uuid>
[src]

try from to Option

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<'a> TryFrom<&'a Value> for Option<i64>
[src]

try from to Option

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<'a> TryFrom<&'a Value> for NaiveDate
[src]

try from to owned

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl Clone for Value
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Value
[src]

Formats the value using the given formatter. Read more

impl PartialEq<Value> for Value
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'a> From<&'a Value> for Vec<String>
[src]

Important traits for Vec<u8>

Performs the conversion.

impl From<i16> for Value
[src]

Owned types

Performs the conversion.

impl From<i32> for Value
[src]

Owned types

Performs the conversion.

impl<'a> From<&'a Option<char>> for Value
[src]

for borrowed option types

Performs the conversion.

impl From<Vec<u8>> for Value
[src]

Owned types

Performs the conversion.

impl From<DateTime<Utc>> for Value
[src]

Owned types

Performs the conversion.

impl<'a> From<&'a Option<i64>> for Value
[src]

for borrowed option types

Performs the conversion.

impl<'a> From<&'a Option<Vec<u8>>> for Value
[src]

for borrowed option types

Performs the conversion.

impl<'a> From<&'a Option<f32>> for Value
[src]

for borrowed option types

Performs the conversion.

impl<'a> From<&'a i32> for Value
[src]

For borrowed types

Performs the conversion.

impl From<i8> for Value
[src]

Owned types

Performs the conversion.

impl<'a> From<&'a NaiveDate> for Value
[src]

For borrowed types

Performs the conversion.

impl<'a> From<&'a String> for Value
[src]

For borrowed types

Performs the conversion.

impl<'a> From<&'a i16> for Value
[src]

For borrowed types

Performs the conversion.

impl From<Uuid> for Value
[src]

Owned types

Performs the conversion.

impl<'a> From<&'a NaiveTime> for Value
[src]

For borrowed types

Performs the conversion.

impl From<Vec<String>> for Value
[src]

Performs the conversion.

impl<'a> From<&'a Option<i32>> for Value
[src]

for borrowed option types

Performs the conversion.

impl From<i64> for Value
[src]

Owned types

Performs the conversion.

impl<'a> From<&'a Option<DateTime<Utc>>> for Value
[src]

for borrowed option types

Performs the conversion.

impl<'a> From<&'a Option<i16>> for Value
[src]

for borrowed option types

Performs the conversion.

impl<'a> From<&'a Option<NaiveTime>> for Value
[src]

for borrowed option types

Performs the conversion.

impl From<&'static str> for Value
[src]

Owned types

Performs the conversion.

impl<'a> From<&'a i64> for Value
[src]

For borrowed types

Performs the conversion.

impl From<bool> for Value
[src]

Owned types

Performs the conversion.

impl From<f64> for Value
[src]

Owned types

Performs the conversion.

impl From<NaiveDate> for Value
[src]

Owned types

Performs the conversion.

impl<'a> From<&'a Option<String>> for Value
[src]

for borrowed option types

Performs the conversion.

impl<'a> From<&'a Uuid> for Value
[src]

For borrowed types

Performs the conversion.

impl From<String> for Value
[src]

Owned types

Performs the conversion.

impl<'a> From<&'a Option<i8>> for Value
[src]

for borrowed option types

Performs the conversion.

impl<'a> From<&'a DateTime<Utc>> for Value
[src]

For borrowed types

Performs the conversion.

impl<'a> From<&'a Option<&'static str>> for Value
[src]

for borrowed option types

Performs the conversion.

impl<'a> From<&'a Vec<u8>> for Value
[src]

For borrowed types

Performs the conversion.

impl<'a> From<&'a &'static str> for Value
[src]

For borrowed types

Performs the conversion.

impl<'a> From<&'a Option<f64>> for Value
[src]

for borrowed option types

Performs the conversion.

impl<'a> From<&'a Option<bool>> for Value
[src]

for borrowed option types

Performs the conversion.

impl From<NaiveTime> for Value
[src]

Owned types

Performs the conversion.

impl<'a> From<&'a Vec<String>> for Value
[src]

Performs the conversion.

impl<'a> From<&'a f64> for Value
[src]

For borrowed types

Performs the conversion.

impl From<f32> for Value
[src]

Owned types

Performs the conversion.

impl<'a> From<&'a bool> for Value
[src]

For borrowed types

Performs the conversion.

impl<'a> From<&'a f32> for Value
[src]

For borrowed types

Performs the conversion.

impl From<char> for Value
[src]

Owned types

Performs the conversion.

impl<'a> From<&'a Option<Uuid>> for Value
[src]

for borrowed option types

Performs the conversion.

impl<'a> From<&'a i8> for Value
[src]

For borrowed types

Performs the conversion.

impl<'a> From<&'a char> for Value
[src]

For borrowed types

Performs the conversion.

impl<'a> From<&'a Option<NaiveDate>> for Value
[src]

for borrowed option types

Performs the conversion.

Auto Trait Implementations

impl Send for Value

impl Sync for Value