Skip to main content

JoinConditions

Trait JoinConditions 

Source
pub trait JoinConditions<'a, QS>: Backend + Sized {
    // Required method
    fn join(
        conditions: impl IntoIterator<Item = BoxedCondition<'a, QS, Self>>,
        junction: Junction,
    ) -> Option<BoxedCondition<'a, QS, Self>>;
}
Expand description

A backend whose conditions on the table QS can be joined: every Diesel backend.

join as a method, so the code generated for an entity needs this one bound rather than join’s.

Required Methods§

Source

fn join( conditions: impl IntoIterator<Item = BoxedCondition<'a, QS, Self>>, junction: Junction, ) -> Option<BoxedCondition<'a, QS, Self>>

See join.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<'a, QS, DB> JoinConditions<'a, QS> for DB
where QS: 'a, DB: Backend + 'a, And<BoxedCondition<'a, QS, DB>, BoxedCondition<'a, QS, DB>>: BoxableExpression<QS, DB, SqlType = Nullable<Bool>>, Or<BoxedCondition<'a, QS, DB>, BoxedCondition<'a, QS, DB>>: BoxableExpression<QS, DB, SqlType = Nullable<Bool>>,