pub trait RelatedSelfVia<R>where
R: EntityTrait,{
// Required methods
fn to() -> RelationDef;
fn via() -> RelationDef;
// Provided method
fn find_related() -> Select<R> { ... }
}Expand description
A trait to relate an Entity to itself through a junction table
Required Methods§
Sourcefn to() -> RelationDef
fn to() -> RelationDef
The RelationDef to the related Entity
Sourcefn via() -> RelationDef
fn via() -> RelationDef
The RelationDef to the junction table
Provided Methods§
Find related Entities
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.