Trait rocket_db_pools::diesel::prelude::AppearsOnTable

source ·
pub trait AppearsOnTable<QS>: Expression
where QS: ?Sized,
{ }
Expand description

Indicates that all elements of an expression are valid given a from clause.

This is used to ensure that users.filter(posts::id.eq(1)) fails to compile. This constraint is only used in places where the nullability of a SQL type doesn’t matter (everything except select and returning). For places where nullability is important, SelectableExpression is used instead.

Implementations on Foreign Types§

source§

impl<'a, T, QS> AppearsOnTable<QS> for &'a T

source§

impl<T0, QS> AppearsOnTable<QS> for (T0,)

source§

impl<T0, T1, QS> AppearsOnTable<QS> for (T0, T1)

source§

impl<T0, T1, T2, QS> AppearsOnTable<QS> for (T0, T1, T2)

source§

impl<T0, T1, T2, T3, QS> AppearsOnTable<QS> for (T0, T1, T2, T3)

source§

impl<T0, T1, T2, T3, T4, QS> AppearsOnTable<QS> for (T0, T1, T2, T3, T4)

source§

impl<T0, T1, T2, T3, T4, T5, QS> AppearsOnTable<QS> for (T0, T1, T2, T3, T4, T5)

source§

impl<T0, T1, T2, T3, T4, T5, T6, QS> AppearsOnTable<QS> for (T0, T1, T2, T3, T4, T5, T6)

source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, QS> AppearsOnTable<QS> for (T0, T1, T2, T3, T4, T5, T6, T7)

source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, QS> AppearsOnTable<QS> for (T0, T1, T2, T3, T4, T5, T6, T7, T8)

source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, QS> AppearsOnTable<QS> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)

source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, QS> AppearsOnTable<QS> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)

source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, QS> AppearsOnTable<QS> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)

source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, QS> AppearsOnTable<QS> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)

source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, QS> AppearsOnTable<QS> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)

source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, QS> AppearsOnTable<QS> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)

source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, QS> AppearsOnTable<QS> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)

source§

impl<T, QS> AppearsOnTable<QS> for Box<T>
where T: AppearsOnTable<QS> + ?Sized, Box<T>: Expression,

Implementors§

source§

impl<L, R, QS> AppearsOnTable<QS> for Concat<L, R>
where Concat<L, R>: Expression, L: AppearsOnTable<QS>, R: AppearsOnTable<QS>,

source§

impl<QS> AppearsOnTable<QS> for now
where now: Expression,

source§

impl<QS> AppearsOnTable<QS> for today

source§

impl<QS, Query, Value> AppearsOnTable<QS> for UncheckedBind<Query, Value>
where UncheckedBind<Query, Value>: Expression,

source§

impl<QS, S, C> AppearsOnTable<QS> for AliasedField<S, C>
where S: AliasSource, QS: AppearsInFromClause<Alias<S>, Count = Once>, C: Column<Table = <S as AliasSource>::Target>,

source§

impl<QS, ST, T> AppearsOnTable<QS> for SqlLiteral<ST, T>
where SqlLiteral<ST, T>: Expression,

source§

impl<ST, I, QS> AppearsOnTable<QS> for Many<ST, I>

source§

impl<T, QS> AppearsOnTable<QS> for Exists<T>
where Exists<T>: Expression, Subselect<T, Bool>: AppearsOnTable<QS>,

source§

impl<T, U, QS> AppearsOnTable<QS> for In<T, U>
where In<T, U>: Expression, T: AppearsOnTable<QS>, U: AppearsOnTable<QS>,

source§

impl<T, U, QS> AppearsOnTable<QS> for NotIn<T, U>
where NotIn<T, U>: Expression, T: AppearsOnTable<QS>, U: AppearsOnTable<QS>,