pub trait RusqliteStructHelper {
// Required methods
fn insert_into_table_struct<T: RusqliteStruct + Serialize>(
&self,
from: &T,
) -> Result<()>;
fn get_from_table_struct<T: RusqliteStruct + for<'a> Deserialize<'a>>(
&self,
) -> Result<Vec<T>>;
}Expand description
The name of the struct must be the same as the one used in the DB table.
Required Methods§
fn insert_into_table_struct<T: RusqliteStruct + Serialize>( &self, from: &T, ) -> Result<()>
fn get_from_table_struct<T: RusqliteStruct + for<'a> Deserialize<'a>>( &self, ) -> Result<Vec<T>>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".