pub trait ToSql {
// Required method
fn to_sql(&self) -> Result<ToSqlOutput<'_>, Error>;
}Available on crate feature
sqlsrv only.Expand description
A trait for types that can be converted into SQLite values. Returns
Error::ToSqlConversionFailure if the conversion fails.
Required Methods§
Sourcefn to_sql(&self) -> Result<ToSqlOutput<'_>, Error>
fn to_sql(&self) -> Result<ToSqlOutput<'_>, Error>
Converts Rust value to SQLite value