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§

Implementations on Foreign Types§

Source§

impl ToDbParams for ()

Source§

impl ToDbParams for Vec<DbValue>

Source§

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

Source§

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

Implementors§