pub trait FilterDsl<Predicate> {
    type Output;

    // Required method
    fn filter(self, predicate: Predicate) -> Self::Output;
}
Expand description

The filter method

This trait should not be relied on directly by most apps. Its behavior is provided by QueryDsl. However, you may need a where clause on this trait to call filter from generic code.

Required Associated Types§

source

type Output

The type returned by .filter.

Required Methods§

source

fn filter(self, predicate: Predicate) -> Self::Output

See the trait documentation.

Implementors§

source§

impl<'a, ST, DB, Predicate, GB> FilterDsl<Predicate> for BoxedSelectStatement<'a, ST, NoFromClause, DB, GB>
where BoxedWhereClause<'a, DB>: WhereAnd<Predicate, Output = BoxedWhereClause<'a, DB>>, Predicate: AppearsOnTable<NoFromClause> + NonAggregate, Predicate::SqlType: BoolOrNullableBool,

source§

impl<F, S, D, W, O, LOf, G, H, LC, Predicate> FilterDsl<Predicate> for SelectStatement<F, S, D, W, O, LOf, G, H, LC>
where Predicate: Expression + NonAggregate, Predicate::SqlType: BoolOrNullableBool, W: WhereAnd<Predicate>,

§

type Output = SelectStatement<F, S, D, <W as WhereAnd<Predicate>>::Output, O, LOf, G, H, LC>

source§

impl<S, Predicate> FilterDsl<Predicate> for Alias<S>
where Self: AsQuery, <Self as AsQuery>::Query: FilterDsl<Predicate>,

§

type Output = <<Alias<S> as AsQuery>::Query as FilterDsl<Predicate>>::Output

source§

impl<T, Predicate> FilterDsl<Predicate> for T
where T: Table, T::Query: FilterDsl<Predicate>,

§

type Output = <<T as AsQuery>::Query as FilterDsl<Predicate>>::Output

source§

impl<T, U, Ret, Predicate> FilterDsl<Predicate> for DeleteStatement<T, U, Ret>
where U: WhereAnd<Predicate>, Predicate: AppearsOnTable<T>, T: QuerySource,

§

type Output = DeleteStatement<T, <U as WhereAnd<Predicate>>::Output, Ret>

source§

impl<T, U, V, Ret, Predicate> FilterDsl<Predicate> for UpdateStatement<T, U, V, Ret>
where T: QuerySource, U: WhereAnd<Predicate>, Predicate: AppearsOnTable<T>,

§

type Output = UpdateStatement<T, <U as WhereAnd<Predicate>>::Output, V, Ret>