pub struct QueryOptions {
pub limit: Option<usize>,
pub offset: Option<usize>,
}Expand description
Options controlling result set size and starting position for execute.
limit = None means unlimited rows. offset = None means start from
the first result. When offset is set without a limit the SQL uses
LIMIT -1 — SQLite requires a LIMIT clause whenever OFFSET appears;
-1 is the SQLite convention for “no cap”.
Fields§
§limit: Option<usize>Maximum number of rows to return. None = unlimited.
offset: Option<usize>Number of rows to skip from the front of the ordered result set.
None (or Some(0)) starts from the first row.
Trait Implementations§
Source§impl Clone for QueryOptions
impl Clone for QueryOptions
Source§fn clone(&self) -> QueryOptions
fn clone(&self) -> QueryOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for QueryOptions
Source§impl Debug for QueryOptions
impl Debug for QueryOptions
Source§impl Default for QueryOptions
impl Default for QueryOptions
Source§fn default() -> QueryOptions
fn default() -> QueryOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for QueryOptions
impl RefUnwindSafe for QueryOptions
impl Send for QueryOptions
impl Sync for QueryOptions
impl Unpin for QueryOptions
impl UnsafeUnpin for QueryOptions
impl UnwindSafe for QueryOptions
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