Skip to main content

SelectSeed

Struct SelectSeed 

Source
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>

Source

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<S> Superset<Nil, Nil> for S

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WrapNullable<NotNull> for T