sea_orm::entity

Trait ColumnTypeTrait

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