pub struct QueryLimits {
pub limit: Option<usize>,
pub offset: usize,
}Expand description
Query limits (LIMIT and OFFSET)
Fields§
§limit: Option<usize>Maximum number of rows to return
offset: usizeNumber of rows to skip
Implementations§
Source§impl QueryLimits
impl QueryLimits
Sourcepub fn apply_iter<T: 'static, I: Iterator<Item = T> + 'static>(
&self,
iter: I,
) -> Box<dyn Iterator<Item = T>>
pub fn apply_iter<T: 'static, I: Iterator<Item = T> + 'static>( &self, iter: I, ) -> Box<dyn Iterator<Item = T>>
Apply limits to an iterator
Trait Implementations§
Source§impl Clone for QueryLimits
impl Clone for QueryLimits
Source§impl Debug for QueryLimits
impl Debug for QueryLimits
Auto Trait Implementations§
impl Freeze for QueryLimits
impl RefUnwindSafe for QueryLimits
impl Send for QueryLimits
impl Sync for QueryLimits
impl Unpin for QueryLimits
impl UnsafeUnpin for QueryLimits
impl UnwindSafe for QueryLimits
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