diesel/query_builder/
limit_offset_clause.rs
1use super::QueryFragment;
2use crate::query_builder::QueryId;
3
4#[derive(Debug, Clone, Copy, QueryId)]
8#[cfg_attr(
9 docsrs,
10 doc(cfg(feature = "i-implement-a-third-party-backend-and-opt-into-breaking-changes"))
11)]
12pub struct LimitOffsetClause<Limit, Offset> {
13 pub limit_clause: Limit,
15 pub offset_clause: Offset,
17}
18
19#[allow(missing_debug_implementations)]
23#[cfg_attr(
24 docsrs,
25 doc(cfg(feature = "i-implement-a-third-party-backend-and-opt-into-breaking-changes"))
26)]
27pub struct BoxedLimitOffsetClause<'a, DB> {
28 pub limit: Option<Box<dyn QueryFragment<DB> + Send + 'a>>,
30 pub offset: Option<Box<dyn QueryFragment<DB> + Send + 'a>>,
32}