sea_orm::entity

Trait Linked

Source
pub trait Linked {
    type FromEntity: EntityTrait;
    type ToEntity: EntityTrait;

    // Required method
    fn link(&self) -> Vec<LinkDef>;

    // Provided method
    fn find_linked(&self) -> Select<Self::ToEntity> { ... }
}
Expand description

A Trait for links between Entities

Required Associated Types§

Required Methods§

Link for an Entity

Provided Methods§

Source

fn find_linked(&self) -> Select<Self::ToEntity>

Find all the Entities that are linked to the Entity

Implementors§