pub struct Limit {
pub limit: Expr,
pub offset: Option<Offset>,
}Expand description
A LIMIT clause with an optional offset.
Restricts the number of rows returned by a query. The limit is an
expression (typically a constant integer). An optional Offset specifies
where to start (either count-based or keyset-based).
§Examples
ⓘ
use toasty_core::stmt::{Limit, Expr, Value};
let limit = Limit {
limit: Expr::from(Value::from(10_i64)),
offset: None,
};Fields§
§limit: ExprThe maximum number of rows to return.
offset: Option<Offset>Optional offset (where to start).
Trait Implementations§
impl StructuralPartialEq for Limit
Auto Trait Implementations§
impl Freeze for Limit
impl RefUnwindSafe for Limit
impl Send for Limit
impl Sync for Limit
impl Unpin for Limit
impl UnsafeUnpin for Limit
impl UnwindSafe for Limit
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