Skip to main content

ToDbParams

Trait ToDbParams 

Source
pub trait ToDbParams {
    // Required method
    fn to_db_params(&self) -> Vec<DbValue>;
}
Expand description

Trait for types that can be converted to database 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 ToDbParams for ()

Source§

impl ToDbParams for Vec<DbValue>

Source§

impl<T: Into<DbValue> + Clone, const N: usize> ToDbParams for [T; N]

Source§

impl<T: Into<DbValue> + Clone> ToDbParams for &[T]

Implementors§