MCPcopy Create free account
hub / github.com/SeaQL/sea-orm / def

Method def

sea-orm-codegen/tests/expanded_with_schema_name/fruit.rs:53–59  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

51impl ColumnTrait for Column {
52 type EntityName = Entity;
53 fn def(&self) -> ColumnDef {
54 match self {
55 Self::Id => ColumnType::Integer.def(),
56 Self::Name => ColumnType::String(StringLen::N(255u32)).def(),
57 Self::CakeId => ColumnType::Integer.def().null(),
58 }
59 }
60}
61
62impl RelationTrait for Relation {

Callers 1

toMethod · 0.45

Calls 3

nullMethod · 0.45
toMethod · 0.45
fromMethod · 0.45

Tested by

no test coverage detected