pub struct InSubquerySpec {
pub outer_column: String,
pub source_table: String,
pub projection_column: String,
pub predicate: Option<Box<BoolExpr>>,
}Expand description
v1.1: Specification for a scalar IN (SELECT ...) / NOT IN (SELECT ...)
subquery.
Created by the linq! macro when parsing
b.field.in_subquery(|p: Post| p.blog_id). Unlike SubquerySpec, this
variant is not navigation-driven — the subquery projects a single column
from an arbitrary table, and the outer column is compared against the
projected values via the IN operator.
Fields§
§outer_column: StringThe outer column being tested (e.g. "id" on the parent table).
source_table: StringThe source table name for the inner SELECT (e.g. "posts").
projection_column: StringThe projection column selected from the inner table
(e.g. "blog_id").
predicate: Option<Box<BoolExpr>>Optional predicate applied inside the subquery
(e.g. WHERE published = ?).
Implementations§
Trait Implementations§
Source§impl Clone for InSubquerySpec
impl Clone for InSubquerySpec
Source§fn clone(&self) -> InSubquerySpec
fn clone(&self) -> InSubquerySpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for InSubquerySpec
impl RefUnwindSafe for InSubquerySpec
impl Send for InSubquerySpec
impl Sync for InSubquerySpec
impl Unpin for InSubquerySpec
impl UnsafeUnpin for InSubquerySpec
impl UnwindSafe for InSubquerySpec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more