diesel::query_dsl::methods

Trait FilterDsl

Source
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>,

Source§

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>,

Source§

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>,

Source§

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,

Source§

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>,

Source§

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