SQLParam

Trait SQLParam 

Source
pub trait SQLParam: Clone + Debug { }
Expand description

A marker trait for types that can be used as SQL parameters.

This trait is used as a bound on the parameter type in SQL fragments. It ensures type safety when building SQL queries with parameters.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl SQLParam for &str

Source§

impl SQLParam for bool

Source§

impl SQLParam for f32

Source§

impl SQLParam for f64

Source§

impl SQLParam for i8

Source§

impl SQLParam for i16

Source§

impl SQLParam for i32

Source§

impl SQLParam for i64

Source§

impl SQLParam for isize

Source§

impl SQLParam for u8

Source§

impl SQLParam for u16

Source§

impl SQLParam for u32

Source§

impl SQLParam for u64

Source§

impl SQLParam for usize

Source§

impl SQLParam for String

Source§

impl<T: SQLParam> SQLParam for &[T]

Source§

impl<T: SQLParam> SQLParam for Option<T>

Source§

impl<T: SQLParam> SQLParam for &T

Source§

impl<T: SQLParam> SQLParam for Vec<T>

Source§

impl<const N: usize, T: SQLParam> SQLParam for [T; N]

Implementors§