pub trait AppearsOnTable<QS>: Expressionwhere
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.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
impl<'a, QS, ST, DB, GB, IsAggregate, StmtKind> AppearsOnTable<ReturningQuerySource<StmtKind, QS>> for Box<dyn BoxableExpression<QS, DB, GB, IsAggregate, SqlType = ST> + 'a>
See comment on SelectableExpression impl above.