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

Method def

sea-orm-codegen/tests/expanded/cake.rs:46–51  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

44impl ColumnTrait for Column {
45 type EntityName = Entity;
46 fn def(&self) -> ColumnDef {
47 match self {
48 Self::Id => ColumnType::Integer.def(),
49 Self::Name => ColumnType::Text.def().null(),
50 }
51 }
52}
53
54impl RelationTrait for Relation {

Callers 15

toMethod · 0.45
toMethod · 0.45
toMethod · 0.45
toMethod · 0.45
toMethod · 0.45
toMethod · 0.45
toMethod · 0.45
viaMethod · 0.45
toMethod · 0.45
viaMethod · 0.45
toMethod · 0.45
toMethod · 0.45

Calls 1

nullMethod · 0.45

Tested by

no test coverage detected