sea_orm::entity

Trait 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

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.

Implementors§