Trait ToValue

Source
pub trait ToValue {
    // Required method
    fn to_value(&self) -> Value;
}
Expand description

A trait to allow passing of parameters ergonomically in em.execute_sql_with_return

Required Methods§

Source

fn to_value(&self) -> Value

Implementations on Foreign Types§

Source§

impl ToValue for &str

Source§

fn to_value(&self) -> Value

Source§

impl ToValue for bool

Source§

fn to_value(&self) -> Value

Source§

impl ToValue for char

Source§

fn to_value(&self) -> Value

Source§

impl ToValue for f32

Source§

fn to_value(&self) -> Value

Source§

impl ToValue for f64

Source§

fn to_value(&self) -> Value

Source§

impl ToValue for i8

Source§

fn to_value(&self) -> Value

Source§

impl ToValue for i16

Source§

fn to_value(&self) -> Value

Source§

impl ToValue for i32

Source§

fn to_value(&self) -> Value

Source§

impl ToValue for i64

Source§

fn to_value(&self) -> Value

Source§

impl ToValue for String

Source§

fn to_value(&self) -> Value

Source§

impl ToValue for Vec<u8>

Source§

fn to_value(&self) -> Value

Source§

impl ToValue for Vec<String>

Source§

fn to_value(&self) -> Value

Source§

impl ToValue for DateTime<Utc>

Source§

fn to_value(&self) -> Value

Source§

impl ToValue for NaiveDate

Source§

fn to_value(&self) -> Value

Source§

impl ToValue for NaiveDateTime

Source§

fn to_value(&self) -> Value

Source§

impl ToValue for NaiveTime

Source§

fn to_value(&self) -> Value

Source§

impl<T> ToValue for Option<T>
where T: ToValue,

Source§

fn to_value(&self) -> Value

Source§

impl<T> ToValue for &T
where T: ToValue,

Source§

fn to_value(&self) -> Value

Implementors§