pub trait BelongingToDsl<T> {
type Output: AsQuery;
fn belonging_to(other: T) -> Self::Output;
}
impl<'a, Parent, Child> BelongingToDsl<&'a Parent> for Child where
Parent: Identifiable,
Child: Identifiable + BelongsTo<Parent>,
&'a Parent::Id: AsExpression<<Child::ForeignKeyColumn as Expression>::SqlType>,
<Child as Identifiable>::Table: FilterDsl<Eq<Child::ForeignKeyColumn, &'a Parent::Id>>, type Output = FindBy<Child::Table, Child::ForeignKeyColumn, &'a Parent::Id>;
impl<'a, Parent, Child> BelongingToDsl<&'a [Parent]> for Child where
Parent: Identifiable,
Child: Identifiable + BelongsTo<Parent>,
Vec<&'a Parent::Id>: AsInExpression<<Child::ForeignKeyColumn as Expression>::SqlType>,
<Child as Identifiable>::Table: FilterDsl<EqAny<Child::ForeignKeyColumn, Vec<&'a Parent::Id>>>, type Output = Filter<Child::Table, EqAny<Child::ForeignKeyColumn, Vec<&'a Parent::Id>>>;
impl<'a, Parent, Child> BelongingToDsl<&'a Vec<Parent>> for Child where
Child: BelongingToDsl<&'a [Parent]>, type Output = Child::Output;