Skip to main content

FromValue

Trait FromValue 

Source
pub trait FromValue: Sized {
    // Required method
    fn from_value(v: Value) -> Result<Self>;
}
Expand description

Conversion out of a value read back from the database.

Required Methods§

Source

fn from_value(v: Value) -> Result<Self>

Consume a Value and produce Self, or explain why not.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl FromValue for DateTime<Utc>

Source§

impl FromValue for Decimal

Source§

impl FromValue for NaiveDate

Source§

impl FromValue for NaiveDateTime

Source§

impl FromValue for NaiveTime

Source§

impl FromValue for String

Source§

impl FromValue for Uuid

Source§

impl FromValue for Value

Source§

impl FromValue for Vec<u8>

Source§

impl FromValue for bool

Source§

impl FromValue for f32

Source§

impl FromValue for f64

Source§

impl FromValue for i8

Source§

impl FromValue for i16

Source§

impl FromValue for i32

Source§

impl FromValue for i64

Source§

impl FromValue for u8

Source§

impl FromValue for u16

Source§

impl FromValue for u32

Source§

impl FromValue for u64

Source§

impl<T: FromValue> FromValue for Option<T>

NULL reads as None; anything else delegates to T.

Implementors§

Source§

impl FromValue for keelson_core::Value