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<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<ST, QS, DB, GB> LimitDsl for BoxedSelectStatement<'_, ST, QS, DB, GB>

Source§

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

Source§

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