pub trait TableDef {
// Required methods
fn name(&self) -> &'static str;
fn columns(&self) -> &'static [&'static str];
// Provided methods
fn create_table_stmt(&self) -> String { ... }
fn insert_stmt(&self) -> String { ... }
}Required Methods§
Provided Methods§
fn create_table_stmt(&self) -> String
fn insert_stmt(&self) -> String
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".