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

Method def

sea-orm-codegen/tests/expanded/filling.rs:44–49  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

42impl ColumnTrait for Column {
43 type EntityName = Entity;
44 fn def(&self) -> ColumnDef {
45 match self {
46 Self::Id => ColumnType::Integer.def(),
47 Self::Name => ColumnType::String(StringLen::N(255u32)).def(),
48 }
49 }
50}
51
52impl RelationTrait for Relation {

Callers 2

toMethod · 0.45
viaMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected