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

Method def

examples/basic/src/example_cake.rs:24–28  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

22
23impl RelationTrait for Relation {
24 fn def(&self) -> RelationDef {
25 match self {
26 Self::Fruit => Entity::has_many(super::fruit::Entity).into(),
27 }
28 }
29}
30
31impl Related<super::fruit::Entity> for Entity {

Callers 15

toMethod · 0.45
toMethod · 0.45
toMethod · 0.45
viaMethod · 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

no outgoing calls

Tested by

no test coverage detected