Trait EntityOrSelect

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§

fn select(self) -> Select<E>

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

Implementors§

§

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

§

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