pub trait IdentityOf<E>where
E: EntityTrait,{
// Required method
fn identity_of(self) -> Identity;
}Expand description
Conversion into an Identity whose columns are guaranteed to belong to
entity E. Used by RelationBuilder::from /
to so the type system enforces that
relation columns reference the right table.
Required Methodsยง
Sourcefn identity_of(self) -> Identity
fn identity_of(self) -> Identity
Build the Identity.
Dyn Compatibilityยง
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".