pub enum QueryPkLimit {
Cursor {
page_size: i64,
after: Option<Value>,
},
Offset {
limit: i64,
offset: Option<i64>,
},
}Expand description
Describes how results from a QueryPk operation should be bounded.
Variants§
Cursor
Cursor-based (keyset) pagination. Returns page_size items resuming
after after. after = None means the first page.
Fields
Offset
Hard-limit with optional client-side skip. Returns up to limit items
after discarding the first offset.
Trait Implementations§
Source§impl Clone for QueryPkLimit
impl Clone for QueryPkLimit
Source§fn clone(&self) -> QueryPkLimit
fn clone(&self) -> QueryPkLimit
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for QueryPkLimit
impl RefUnwindSafe for QueryPkLimit
impl Send for QueryPkLimit
impl Sync for QueryPkLimit
impl Unpin for QueryPkLimit
impl UnsafeUnpin for QueryPkLimit
impl UnwindSafe for QueryPkLimit
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