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§
type FromEntity: EntityTrait
type ToEntity: EntityTrait
Required Methods§
Provided Methods§
Sourcefn find_linked(&self) -> Select<Self::ToEntity>
fn find_linked(&self) -> Select<Self::ToEntity>
Find all the Entities that are linked to the Entity