pub trait LimitDsl {
    type Output;

    // Required method
    fn limit(self, limit: i64) -> Self::Output;
}
Expand description

The limit method

This trait should not be relied on directly by most apps. Its behavior is provided by QueryDsl. However, you may need a where clause on this trait to call limit from generic code.

Required Associated Types§

source

type Output

The type returned by .limit

Required Methods§

source

fn limit(self, limit: i64) -> Self::Output

See the trait documentation

Implementors§

source§

impl<'a, ST, QS, DB, GB> LimitDsl for BoxedSelectStatement<'a, ST, QS, DB, GB>where DB: Backend, LimitClause<AsExprOf<i64, BigInt>>: QueryFragment<DB>,

§

type Output = BoxedSelectStatement<'a, ST, QS, DB, GB>

source§

impl<S> LimitDsl for Alias<S>where Self: AsQuery, <Self as AsQuery>::Query: LimitDsl,

§

type Output = <<Alias<S> as AsQuery>::Query as LimitDsl>::Output

source§

impl<ST, F, S, D, W, O, L, Of, G, H, LC> LimitDsl for SelectStatement<F, S, D, W, O, LimitOffsetClause<L, Of>, G, H, LC>where Self: SelectQuery<SqlType = ST>, SelectStatement<F, S, D, W, O, LimitOffsetClause<LimitClause<AsExprOf<i64, BigInt>>, Of>, G, H, LC>: SelectQuery<SqlType = ST>,

source§

impl<T> LimitDsl for Twhere T: Table, T::Query: LimitDsl,

§

type Output = <<T as AsQuery>::Query as LimitDsl>::Output