pub struct Derived<'a, V: SQLParam, Name, Projection, Query> { /* private fields */ }Expand description
Implementations§
Source§impl<'a, V, Name, Projection, Query> Derived<'a, V, Name, Projection, Query>
impl<'a, V, Name, Projection, Query> Derived<'a, V, Name, Projection, Query>
Sourcepub fn into_query(self) -> Query
pub fn into_query(self) -> Query
Returns the underlying query by value.
Trait Implementations§
Source§impl<'a, V: SQLParam, Name, Projection, Query: Clone> Clone for Derived<'a, V, Name, Projection, Query>
impl<'a, V: SQLParam, Name, Projection, Query: Clone> Clone for Derived<'a, V, Name, Projection, Query>
impl<'a, V, Name, Output, Projection, Query> ColumnOf<Derived<'a, V, Name, Projection, Query>> for DerivedField<Name, Output>where
V: SQLParam,
Source§impl<'a, V, Name, Projection, Query> HasSelectModel for Derived<'a, V, Name, Projection, Query>
impl<'a, V, Name, Projection, Query> HasSelectModel for Derived<'a, V, Name, Projection, Query>
Source§const COLUMN_COUNT: usize = Projection::COLUMN_COUNT
const COLUMN_COUNT: usize = Projection::COLUMN_COUNT
Number of columns in the table.
Source§type SelectModel = <Projection as DerivedProjection<Name>>::Row
type SelectModel = <Projection as DerivedProjection<Name>>::Row
The struct a
SELECT * row decodes into.Source§impl<V: SQLParam, Name, Projection, Query: ExprSources> ScopeEntry for Derived<'_, V, Name, Projection, Query>
impl<V: SQLParam, Name, Projection, Query: ExprSources> ScopeEntry for Derived<'_, V, Name, Projection, Query>
Source§type Sources = <Query as ExprSources>::Sources
type Sources = <Query as ExprSources>::Sources
Sources this source reads itself, such as the tables a derived
table’s subquery reads from an outer query. They resolve against the
enclosing query (or, for a
LATERAL join, the sources joined before
it). Tables and views read nothing (()).Auto Trait Implementations§
impl<'a, V, Name, Projection, Query> Freeze for Derived<'a, V, Name, Projection, Query>
impl<'a, V, Name, Projection, Query> RefUnwindSafe for Derived<'a, V, Name, Projection, Query>
impl<'a, V, Name, Projection, Query> Send for Derived<'a, V, Name, Projection, Query>
impl<'a, V, Name, Projection, Query> Sync for Derived<'a, V, Name, Projection, Query>
impl<'a, V, Name, Projection, Query> Unpin for Derived<'a, V, Name, Projection, Query>
impl<'a, V, Name, Projection, Query> UnsafeUnpin for Derived<'a, V, Name, Projection, Query>
impl<'a, V, Name, Projection, Query> UnwindSafe for Derived<'a, V, Name, Projection, Query>
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