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

Method from

src/entity/relation.rs:402–408  ·  view source on GitHub ↗

Build a relationship from an Entity

(mut self, identifier: T)

Source from the content-addressed store, hash-verified

400
401 /// Build a relationship from an Entity
402 pub fn from<T>(mut self, identifier: T) -> Self
403 where
404 T: IdentityOf<E>,
405 {
406 self.from_col = Some(identifier.identity_of());
407 self
408 }
409
410 /// Build a relationship to an Entity
411 pub fn to<T>(mut self, identifier: T) -> Self

Callers 4

defMethod · 0.45
defMethod · 0.45
defMethod · 0.45
prepare_fromMethod · 0.45

Calls 4

identity_ofMethod · 0.80
takeMethod · 0.80
newFunction · 0.50
unpack_table_refFunction · 0.50

Tested by

no test coverage detected