Trait DataTarget

Source
pub trait DataTarget:
    Sync
    + Send
    + 'static {
    type Row;

    // Required method
    fn save<'life0, 'life1, 'async_trait>(
        &'life0 self,
        row: &'life1 Self::Row,
    ) -> Pin<Box<dyn Future<Output = Result<(), Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Tries to save a row.

Required Associated Types§

Required Methods§

Source

fn save<'life0, 'life1, 'async_trait>( &'life0 self, row: &'life1 Self::Row, ) -> Pin<Box<dyn Future<Output = Result<(), Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§

Source§

impl<C, I, T, R> DataTarget for RdbSaver<C, I, T, R>
where C: CreateTable, I: Insert, T: TableChecker, R: RowToTableName<Row = I::Row>,

Source§

type Row = <I as Insert>::Row