Trait Linked
pub trait Linked {
type FromEntity: EntityTrait;
type ToEntity: EntityTrait;
// Required method
fn link(&self) -> Vec<RelationDef>;
// 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§
fn link(&self) -> Vec<RelationDef>
fn link(&self) -> Vec<RelationDef>
Link for an Entity
Provided Methods§
fn find_linked(&self) -> Select<Self::ToEntity>
fn find_linked(&self) -> Select<Self::ToEntity>
Find all the Entities that are linked to the Entity