pub trait ToSqlValue {
// Required method
fn to_sql_value(&self) -> DbValue;
}Expand description
Converts a Rust value into its SQL parameter representation (the write side of the codec).
Required Methods§
Sourcefn to_sql_value(&self) -> DbValue
fn to_sql_value(&self) -> DbValue
Returns the SQL value bound for this Rust value.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".