Skip to main content

IntoParam

Trait IntoParam 

Source
pub trait IntoParam {
    // Required method
    fn into_param(self) -> SqlType;
}
Expand description

Implemented for types that can be sent as parameters

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 IntoParam for NaiveDate

Source§

impl IntoParam for NaiveDateTime

Source§

impl IntoParam for NaiveTime

Source§

impl IntoParam for String

Source§

impl IntoParam for Vec<u8>

Source§

impl IntoParam for bool

Source§

impl IntoParam for f32

Source§

impl IntoParam for f64

Source§

impl IntoParam for i8

Source§

impl IntoParam for i16

Source§

impl IntoParam for i32

Source§

impl IntoParam for i64

Source§

impl IntoParam for u8

Source§

impl IntoParam for u16

Source§

impl IntoParam for u32

Source§

impl<T, B> IntoParam for &B
where B: ToOwned<Owned = T> + ?Sized, T: Borrow<B> + IntoParam,

Implements IntoParam for all borrowed variants (&str, Cow and etc)

Source§

impl<T> IntoParam for Option<T>
where T: IntoParam,

Implements IntoParam for all nullable variants

Implementors§