pub struct PageRequest { /* private fields */ }Expand description
Request-owned public page shape.
The requested limit is a caller preference, not a custom policy. IcyDB clamps it to the engine-owned public page cap before admission/execution.
Implementations§
Source§impl PageRequest
impl PageRequest
Sourcepub const fn first(limit: u32) -> Self
pub const fn first(limit: u32) -> Self
Build a first-page request with one requested page size.
Sourcepub fn next(limit: u32, cursor: impl Into<String>) -> Self
pub fn next(limit: u32, cursor: impl Into<String>) -> Self
Build a continuation request with one requested page size and cursor.
Sourcepub const fn with_limit(self, limit: u32) -> Self
pub const fn with_limit(self, limit: u32) -> Self
Return this request with a requested page size.
Sourcepub fn with_cursor(self, cursor: impl Into<String>) -> Self
pub fn with_cursor(self, cursor: impl Into<String>) -> Self
Return this request with an opaque continuation cursor.
Trait Implementations§
Source§impl Clone for PageRequest
impl Clone for PageRequest
Source§fn clone(&self) -> PageRequest
fn clone(&self) -> PageRequest
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 moreSource§impl Debug for PageRequest
impl Debug for PageRequest
Source§impl Default for PageRequest
impl Default for PageRequest
Source§fn default() -> PageRequest
fn default() -> PageRequest
Returns the “default value” for a type. Read more
impl Eq for PageRequest
Source§impl PartialEq for PageRequest
impl PartialEq for PageRequest
Source§fn eq(&self, other: &PageRequest) -> bool
fn eq(&self, other: &PageRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PageRequest
Auto Trait Implementations§
impl Freeze for PageRequest
impl RefUnwindSafe for PageRequest
impl Send for PageRequest
impl Sync for PageRequest
impl Unpin for PageRequest
impl UnsafeUnpin for PageRequest
impl UnwindSafe for PageRequest
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