zino_orm

Trait IntoSqlValue

Source
pub trait IntoSqlValue {
    // Required method
    fn into_sql_value(self) -> JsonValue;
}
Expand description

A generic interface for converting into SQL values.

Required Methods§

Source

fn into_sql_value(self) -> JsonValue

Converts self to a SQL value.

Implementations on Foreign Types§

Source§

impl IntoSqlValue for &str

Source§

impl IntoSqlValue for &Path

Source§

impl IntoSqlValue for &Uri

Source§

impl IntoSqlValue for &Url

Source§

impl IntoSqlValue for Cow<'_, str>

Source§

impl IntoSqlValue for IpAddr

Source§

impl IntoSqlValue for bool

Source§

impl IntoSqlValue for f32

Source§

impl IntoSqlValue for f64

Source§

impl IntoSqlValue for i8

Source§

impl IntoSqlValue for i16

Source§

impl IntoSqlValue for i32

Source§

impl IntoSqlValue for i64

Source§

impl IntoSqlValue for isize

Source§

impl IntoSqlValue for u8

Source§

impl IntoSqlValue for u16

Source§

impl IntoSqlValue for u32

Source§

impl IntoSqlValue for u64

Source§

impl IntoSqlValue for ()

Source§

impl IntoSqlValue for usize

Source§

impl IntoSqlValue for String

Source§

impl IntoSqlValue for Date

Source§

impl IntoSqlValue for DateTime

Source§

impl IntoSqlValue for Time

Source§

impl IntoSqlValue for Decimal

Source§

impl IntoSqlValue for JsonValue

Source§

impl IntoSqlValue for Map

Source§

impl IntoSqlValue for Uuid

Source§

impl<T: Clone + IntoSqlValue> IntoSqlValue for &[T]

Source§

impl<T: IntoSqlValue> IntoSqlValue for Option<T>

Source§

impl<T: IntoSqlValue> IntoSqlValue for Vec<T>

Source§

impl<T: IntoSqlValue, const N: usize> IntoSqlValue for [T; N]

Implementors§