pub struct PageArgs {
pub page: Option<u64>,
pub limit: Option<usize>,
pub all: bool,
pub requested: bool,
}Expand description
Parsed page-based pagination input.
Fields§
§page: Option<u64>§limit: Option<usize>§all: bool§requested: boolTrue if the caller passed ANY of the pagination args. Drives the opt-in envelope shape.
Implementations§
Trait Implementations§
impl Copy for PageArgs
Auto Trait Implementations§
impl Freeze for PageArgs
impl RefUnwindSafe for PageArgs
impl Send for PageArgs
impl Sync for PageArgs
impl Unpin for PageArgs
impl UnsafeUnpin for PageArgs
impl UnwindSafe for PageArgs
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