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