Trait sea_orm::entity::Related

source ·
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

Object Safety§

This trait is not object safe.

Implementors§