Skip to main content

TableRow

Trait TableRow 

Source
pub trait TableRow {
    const TABLE_NAME: &'static str;

    // Provided method
    fn table_ref() -> ReducerTableRef { ... }
}
Expand description

Implemented by every #[table] row type. Maps the Rust struct to the module table name string.

Required Associated Constants§

Source

const TABLE_NAME: &'static str

Provided Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§