diesel::query_dsl::methods

Trait LimitDsl

source
pub trait LimitDsl<DummyArgForAutoType = i64> {
    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>

source§

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

source§

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

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 T
where T: Table, T::Query: LimitDsl,