Trait clia_rustorm::FromValue
source · [−]pub trait FromValue: Sized {
fn from_value(v: &Value) -> Result<Self, ConvertError>;
}Required Methods
fn from_value(v: &Value) -> Result<Self, ConvertError>
Implementations on Foreign Types
sourceimpl FromValue for bool
impl FromValue for bool
fn from_value(v: &Value) -> Result<bool, ConvertError>
sourceimpl<T> FromValue for Option<T>where
T: FromValue,
impl<T> FromValue for Option<T>where
T: FromValue,
fn from_value(v: &Value) -> Result<Option<T>, ConvertError>
sourceimpl FromValue for i64
impl FromValue for i64
fn from_value(v: &Value) -> Result<i64, ConvertError>
sourceimpl FromValue for NaiveDateTime
impl FromValue for NaiveDateTime
fn from_value(v: &Value) -> Result<NaiveDateTime, ConvertError>
sourceimpl FromValue for f64
impl FromValue for f64
fn from_value(v: &Value) -> Result<f64, ConvertError>
sourceimpl FromValue for DateTime<Utc>
impl FromValue for DateTime<Utc>
fn from_value(v: &Value) -> Result<DateTime<Utc>, ConvertError>
sourceimpl FromValue for f32
impl FromValue for f32
fn from_value(v: &Value) -> Result<f32, ConvertError>
sourceimpl FromValue for NaiveDate
impl FromValue for NaiveDate
try from to owned
fn from_value(v: &Value) -> Result<NaiveDate, ConvertError>
sourceimpl FromValue for char
impl FromValue for char
try from to owned
fn from_value(v: &Value) -> Result<char, ConvertError>
sourceimpl FromValue for i16
impl FromValue for i16
fn from_value(v: &Value) -> Result<i16, ConvertError>
sourceimpl FromValue for i8
impl FromValue for i8
fn from_value(v: &Value) -> Result<i8, ConvertError>
sourceimpl FromValue for i32
impl FromValue for i32
fn from_value(v: &Value) -> Result<i32, ConvertError>
sourceimpl FromValue for Vec<String, Global>
impl FromValue for Vec<String, Global>
fn from_value(v: &Value) -> Result<Vec<String, Global>, ConvertError>
sourceimpl FromValue for String
impl FromValue for String
Char can be casted into String and they havea separate implementation for extracting data
fn from_value(v: &Value) -> Result<String, ConvertError>
sourceimpl FromValue for Vec<u8, Global>
impl FromValue for Vec<u8, Global>
try from to owned