Trait RowToTableName

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

    // Required method
    fn row2table(&self, row: &Self::Row) -> Result<String, Status>;
}
Expand description

Tries to generate a table name from a row.

Required Associated Types§

Required Methods§

Source

fn row2table(&self, row: &Self::Row) -> Result<String, Status>

Implementors§

Source§

impl<R, F> RowToTableName for RowToTabNameFn<R, F>
where F: Fn(&R) -> Result<String, Status> + Send + Sync + 'static, R: Send + Sync + 'static,

Source§

type Row = R