pub struct Page<T, C> {
pub items: Vec<T>,
pub next_cursor: Option<C>,
}Expand description
A typed page result for internal runtime and core methods.
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>
impl<T, C> RefUnwindSafe for Page<T, C>
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>
impl<T, C> UnwindSafe for Page<T, C>
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