Trait rusqlite::types::ToSql

source ·
pub trait ToSql {
    // Required method
    fn to_sql(&self) -> Result<ToSqlOutput<'_>>;
}
Expand description

A trait for types that can be converted into SQLite values. Returns Error::ToSqlConversionFailure if the conversion fails.

Required Methods§

source

fn to_sql(&self) -> Result<ToSqlOutput<'_>>

Converts Rust value to SQLite value

Implementations on Foreign Types§

source§

impl ToSql for bool

source§

impl ToSql for f32

source§

impl ToSql for f64

source§

impl ToSql for i8

source§

impl ToSql for i16

source§

impl ToSql for i32

source§

impl ToSql for i64

source§

impl ToSql for isize

source§

impl ToSql for str

source§

impl ToSql for u8

source§

impl ToSql for u16

source§

impl ToSql for u32

source§

impl ToSql for u64

source§

impl ToSql for usize

source§

impl ToSql for String

source§

impl ToSql for Vec<u8>

source§

impl ToSql for NonZeroI8

source§

impl ToSql for NonZeroI16

source§

impl ToSql for NonZeroI32

source§

impl ToSql for NonZeroI64

source§

impl ToSql for NonZeroIsize

source§

impl ToSql for NonZeroU8

source§

impl ToSql for NonZeroU16

source§

impl ToSql for NonZeroU32

source§

impl ToSql for NonZeroU64

source§

impl ToSql for NonZeroUsize

source§

impl ToSql for [u8]

source§

impl<T> ToSql for &T
where T: ToSql + ?Sized,

source§

impl<T: ToSql + ToOwned + ?Sized> ToSql for Cow<'_, T>

source§

impl<T: ToSql + ?Sized> ToSql for Box<T>

source§

impl<T: ToSql + ?Sized> ToSql for Rc<T>

source§

impl<T: ToSql + ?Sized> ToSql for Arc<T>

source§

impl<T: ToSql> ToSql for Option<T>

source§

impl<const N: usize> ToSql for [u8; N]

Implementors§