pub trait ColumnTypeTrait {
    // Required methods
    fn def(self) -> ColumnDef;
    fn get_enum_name(&self) -> Option<&DynIden>;
}
Expand description

SeaORM’s utility methods that act on ColumnType

Required Methods§

source

fn def(self) -> ColumnDef

Instantiate a new ColumnDef

source

fn get_enum_name(&self) -> Option<&DynIden>

Get the name of the enum if this is a enum column

Implementors§