pub struct SelectSeed<Sel> { /* private fields */ }Expand description
Holds just the SELECT list until .from(..) supplies the first table
and therefore the query’s initial Scope. Splitting this out (rather
than requiring Scope be known at .select(..) time) is what lets the
builder read in SELECT -> FROM -> ... order while still validating
every selected column against the final scope only once, at the
query’s terminal method (.to_sql(Postgres)/.load()).
Implementations§
Source§impl<Sel> SelectSeed<Sel>
impl<Sel> SelectSeed<Sel>
Sourcepub fn from<D, S: JoinSource<D>>(
self,
source: S,
) -> Select<D, Cons<TableSlot<S::Table, NotNull>, Nil>, Sel>
pub fn from<D, S: JoinSource<D>>( self, source: S, ) -> Select<D, Cons<TableSlot<S::Table, NotNull>, Nil>, Sel>
source is a value, not a turbofish — a schema table’s zero-sized
token (users::Table) or a cte::with(..) binding. A CTE brings its
WITH clause along, so it cannot be selected from unbound.
Auto Trait Implementations§
impl<Sel> Freeze for SelectSeed<Sel>where
Sel: Freeze,
impl<Sel> RefUnwindSafe for SelectSeed<Sel>where
Sel: RefUnwindSafe,
impl<Sel> Send for SelectSeed<Sel>where
Sel: Send,
impl<Sel> Sync for SelectSeed<Sel>where
Sel: Sync,
impl<Sel> Unpin for SelectSeed<Sel>where
Sel: Unpin,
impl<Sel> UnsafeUnpin for SelectSeed<Sel>where
Sel: UnsafeUnpin,
impl<Sel> UnwindSafe for SelectSeed<Sel>where
Sel: UnwindSafe,
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