pub trait ColumnGenerator {
// Required methods
fn column_definitions(&self, table: &Table) -> Vec<String>;
fn column_sql(&self, table: &Table, column: &Column) -> String;
fn column_options(&self, table: &Table, column: &Column) -> String;
fn default_value(&self, table: &Table, column: &Column) -> Option<String>;
}Required Methods§
fn column_definitions(&self, table: &Table) -> Vec<String>
fn column_sql(&self, table: &Table, column: &Column) -> String
fn column_options(&self, table: &Table, column: &Column) -> String
fn default_value(&self, table: &Table, column: &Column) -> Option<String>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".