diesel::query_dsl::methods

Trait OrFilterDsl

Source
pub trait OrFilterDsl<Predicate> {
    type Output;

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

The or_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 or_filter from generic code.

Required Associated Types§

Source

type Output

The type returned by .filter.

Required Methods§

Source

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

See the trait documentation.

Implementors§

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl<T, U, Ret, Predicate> OrFilterDsl<Predicate> for DeleteStatement<T, U, Ret>
where T: QuerySource, U: WhereOr<Predicate>, Predicate: AppearsOnTable<T>,

Source§

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