Skip to main content

ColumnGenerator

Trait ColumnGenerator 

Source
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§

Source

fn column_definitions(&self, table: &Table) -> Vec<String>

Source

fn column_sql(&self, table: &Table, column: &Column) -> String

Source

fn column_options(&self, table: &Table, column: &Column) -> String

Source

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".

Implementors§