pub trait Related<R>where
    R: EntityTrait,{
    // Required method
    fn to() -> RelationDef;

    // Provided methods
    fn via() -> Option<RelationDef> { ... }
    fn find_related() -> Select<R> { ... }
}
Expand description

Checks if Entities are related

Required Methods§

source

fn to() -> RelationDef

Check if an entity is related to another entity

Provided Methods§

source

fn via() -> Option<RelationDef>

Check if an entity is related through another entity

Find related Entities

Implementors§

source§

impl Related<Entity> for leetcode_tui_rs::entities::question_topic_tag::Entity

source§

impl Related<Entity> for leetcode_tui_rs::entities::topic_tag::Entity

source§

impl Related<Entity> for leetcode_tui_rs::entities::question::Entity

source§

impl Related<Entity> for leetcode_tui_rs::entities::question_topic_tag::Entity