pub struct SQuery<S, I> {
pub select: S,
pub phantom: PhantomData<I>,
}Expand description
let query = users.filter(group_id.eq(group.id));
let query = query.order((lname.asc(), fname.asc()));
let select = SQuery {
select: query,
phantom: PhantomData::
Fields§
§select: S§phantom: PhantomData<I>Trait Implementations§
Source§impl<S: LoadQuery<PgConnection, I> + SelectQuery + QueryFragment<Pg>, I: 'static> Handler<SQuery<S, I>> for DbExecutor<PgConnection>
impl<S: LoadQuery<PgConnection, I> + SelectQuery + QueryFragment<Pg>, I: 'static> Handler<SQuery<S, I>> for DbExecutor<PgConnection>
Auto Trait Implementations§
impl<S, I> Freeze for SQuery<S, I>where
S: Freeze,
impl<S, I> RefUnwindSafe for SQuery<S, I>where
S: RefUnwindSafe,
I: RefUnwindSafe,
impl<S, I> Send for SQuery<S, I>
impl<S, I> Sync for SQuery<S, I>
impl<S, I> Unpin for SQuery<S, I>
impl<S, I> UnsafeUnpin for SQuery<S, I>where
S: UnsafeUnpin,
impl<S, I> UnwindSafe for SQuery<S, I>where
S: UnwindSafe,
I: 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
impl<T> Erased for T
Source§impl<T> IntoSql for T
impl<T> IntoSql for T
Source§fn into_sql<T>(self) -> Self::Expressionwhere
Self: Sized + AsExpression<T>,
fn into_sql<T>(self) -> Self::Expressionwhere
Self: Sized + AsExpression<T>,
Convert
self to an expression for Diesel’s query builder. Read moreSource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
Convert
&self to an expression for Diesel’s query builder. Read more