pub trait Inserter<DB: Database>: Sized {
// Required methods
fn insert<'life0, 'async_trait, T>(
self,
value: &'life0 T,
) -> Pin<Box<dyn Future<Output = Result<DB::QueryResult>> + Send + 'async_trait>>
where T: Insertable<Database = DB> + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait;
fn bulk_insert_with_table_name_and_chunk_size<'life0, 'life1, 'async_trait, T>(
self,
table_name: &'life0 str,
chunk_size: usize,
values: &'life1 [T],
) -> Pin<Box<dyn Future<Output = Result<Vec<DB::QueryResult>>> + Send + 'async_trait>>
where T: Insertable<Database = DB> + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
// Provided methods
fn bulk_insert<'life0, 'async_trait, T>(
self,
values: &'life0 [T],
) -> Pin<Box<dyn Future<Output = Result<Vec<DB::QueryResult>>> + Send + 'async_trait>>
where T: Insertable<Database = DB> + Sync + 'async_trait,
Self: Send + 'async_trait,
'life0: 'async_trait { ... }
fn bulk_insert_with_table_name<'life0, 'life1, 'async_trait, T>(
self,
table_name: &'life0 str,
values: &'life1 [T],
) -> Pin<Box<dyn Future<Output = Result<Vec<DB::QueryResult>>> + Send + 'async_trait>>
where T: Insertable<Database = DB> + Sync + 'async_trait,
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn bulk_insert_with_chunk_size<'life0, 'async_trait, T>(
self,
chunk_size: usize,
values: &'life0 [T],
) -> Pin<Box<dyn Future<Output = Result<Vec<DB::QueryResult>>> + Send + 'async_trait>>
where T: Insertable<Database = DB> + Sync + 'async_trait,
Self: Send + 'async_trait,
'life0: 'async_trait { ... }
}
Required Methods§
fn insert<'life0, 'async_trait, T>(
self,
value: &'life0 T,
) -> Pin<Box<dyn Future<Output = Result<DB::QueryResult>> + Send + 'async_trait>>where
T: Insertable<Database = DB> + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
fn bulk_insert_with_table_name_and_chunk_size<'life0, 'life1, 'async_trait, T>(
self,
table_name: &'life0 str,
chunk_size: usize,
values: &'life1 [T],
) -> Pin<Box<dyn Future<Output = Result<Vec<DB::QueryResult>>> + Send + 'async_trait>>where
T: Insertable<Database = DB> + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Provided Methods§
fn bulk_insert<'life0, 'async_trait, T>(
self,
values: &'life0 [T],
) -> Pin<Box<dyn Future<Output = Result<Vec<DB::QueryResult>>> + Send + 'async_trait>>where
T: Insertable<Database = DB> + Sync + 'async_trait,
Self: Send + 'async_trait,
'life0: 'async_trait,
fn bulk_insert_with_table_name<'life0, 'life1, 'async_trait, T>(
self,
table_name: &'life0 str,
values: &'life1 [T],
) -> Pin<Box<dyn Future<Output = Result<Vec<DB::QueryResult>>> + Send + 'async_trait>>where
T: Insertable<Database = DB> + Sync + 'async_trait,
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn bulk_insert_with_chunk_size<'life0, 'async_trait, T>(
self,
chunk_size: usize,
values: &'life0 [T],
) -> Pin<Box<dyn Future<Output = Result<Vec<DB::QueryResult>>> + Send + 'async_trait>>where
T: Insertable<Database = DB> + Sync + 'async_trait,
Self: Send + 'async_trait,
'life0: 'async_trait,
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.