Trait EntityOrSelect

Source
pub trait EntityOrSelect<E>: Send
where E: EntityTrait,
{ // Required method fn select(self) -> Select<E>; }
Expand description

Entity, or a Select; to be used as parameters in LoaderTrait

Required Methods§

Source

fn select(self) -> Select<E>

If self is Entity, use Entity::find()

Implementors§

Source§

impl<E> EntityOrSelect<E> for Select<E>
where E: EntityTrait,

Source§

impl<E> EntityOrSelect<E> for E
where E: EntityTrait,