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::Id: AsExpression<Child::ForeignKeyColumn::SqlType>,
Child::Table: FilterDsl<Eq<Child::ForeignKeyColumn, &'a Parent::Id>>
impl<'a, Parent, Child> BelongingToDsl<&'a [Parent]> for Child where &'a Parent: Identifiable,
Child: HasTable + BelongsTo<Parent>,
Vec<&'a Parent::Id>: AsInExpression<Child::ForeignKeyColumn::SqlType>,
Child::Table: FilterDsl<EqAny<Child::ForeignKeyColumn, Vec<&'a Parent::Id>>>
impl<'a, Parent, Child> BelongingToDsl<&'a Vec<Parent>> for Child where Child: BelongingToDsl<&'a [Parent]>