Skip to main content

IntoSqlValue

Trait IntoSqlValue 

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

Converts a Rust value into a parameter for a specific typed column.

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl IntoSqlValue<String> for &str

Implementors§

Source§

impl<T> IntoSqlValue<Option<T>> for T
where T: Into<Value>,

Source§

impl<T> IntoSqlValue<T> for T
where T: Into<Value>,