pub trait RelatedSelfVia<R>where
R: EntityTrait,{
// Required methods
fn to() -> RelationDef;
fn via() -> RelationDef;
// Provided method
fn find_related() -> Select<R> { ... }
}Expand description
Self-referential many-to-many relation: Self <-> Self through a
junction table (e.g. user_follower).
Required Methods§
Sourcefn to() -> RelationDef
fn to() -> RelationDef
The relation back to Self (via the junction).
Sourcefn via() -> RelationDef
fn via() -> RelationDef
The relation from Self to the junction table.
Provided Methods§
Build a Select<R> pre-joined with Self via the junction table.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".