pub struct PageRequest<C> {
pub limit: EffectiveLimit,
pub cursor: Option<C>,
}Expand description
Typed request envelope for internal runtime/core page methods.
This is not a direct wire response type. HTTP handlers parse public query
fields into this shape after validating limit and decoding cursor.
Fields§
§limit: EffectiveLimitEnforced page size.
cursor: Option<C>Optional decoded endpoint cursor.
Trait Implementations§
Source§impl<C: Clone> Clone for PageRequest<C>
impl<C: Clone> Clone for PageRequest<C>
Source§fn clone(&self) -> PageRequest<C>
fn clone(&self) -> PageRequest<C>
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<C: Debug> Debug for PageRequest<C>
impl<C: Debug> Debug for PageRequest<C>
impl<C: Eq> Eq for PageRequest<C>
Source§impl<C: PartialEq> PartialEq for PageRequest<C>
impl<C: PartialEq> PartialEq for PageRequest<C>
impl<C: PartialEq> StructuralPartialEq for PageRequest<C>
Auto Trait Implementations§
impl<C> Freeze for PageRequest<C>where
C: Freeze,
impl<C> RefUnwindSafe for PageRequest<C>where
C: RefUnwindSafe,
impl<C> Send for PageRequest<C>where
C: Send,
impl<C> Sync for PageRequest<C>where
C: Sync,
impl<C> Unpin for PageRequest<C>where
C: Unpin,
impl<C> UnsafeUnpin for PageRequest<C>where
C: UnsafeUnpin,
impl<C> UnwindSafe for PageRequest<C>where
C: UnwindSafe,
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