pub struct Page<T, C> {
pub items: Vec<T>,
pub next_cursor: Option<C>,
}Expand description
Typed result envelope for internal runtime/core page methods.
This is not a direct wire response type. HTTP handlers encode
next_cursor into the public response envelope.
Fields§
§items: Vec<T>Returned items.
next_cursor: Option<C>Cursor for the next page, if another page is available.
Trait Implementations§
impl<T: Eq, C: Eq> Eq for Page<T, C>
impl<T: PartialEq, C: PartialEq> StructuralPartialEq for Page<T, C>
Auto Trait Implementations§
impl<T, C> Freeze for Page<T, C>where
C: Freeze,
impl<T, C> RefUnwindSafe for Page<T, C>where
C: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, C> Send for Page<T, C>
impl<T, C> Sync for Page<T, C>
impl<T, C> Unpin for Page<T, C>
impl<T, C> UnsafeUnpin for Page<T, C>where
C: UnsafeUnpin,
impl<T, C> UnwindSafe for Page<T, C>where
C: UnwindSafe,
T: 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