Trait rustorm::dao::ToValue
[−]
[src]
pub trait ToValue { fn to_db_type(&self) -> Value; }
rename to ToValue
Required Methods
fn to_db_type(&self) -> Value
Implementors
impl ToValue for Value
impl ToValue for ()
impl ToValue for bool
impl ToValue for i8
impl ToValue for i16
impl ToValue for i32
impl ToValue for i64
impl ToValue for u8
impl ToValue for u16
impl ToValue for u32
impl ToValue for u64
impl ToValue for f32
impl ToValue for f64
impl<'a> ToValue for &'a str
impl ToValue for String
impl ToValue for Uuid
impl ToValue for DateTime<UTC>
impl ToValue for NaiveDate
impl ToValue for NaiveTime
impl ToValue for NaiveDateTime