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

Method def

examples/basic/src/example_fruit.rs:62–68  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

60 type EntityName = Entity;
61
62 fn def(&self) -> ColumnDef {
63 match self {
64 Self::Id => ColumnType::Integer.def(),
65 Self::Name => ColumnType::String(StringLen::None).def(),
66 Self::CakeId => ColumnType::Integer.def(),
67 }
68 }
69}
70
71impl RelationTrait for Relation {

Callers 1

toMethod · 0.45

Calls 2

toMethod · 0.45
fromMethod · 0.45

Tested by

no test coverage detected