pub struct Page<T, K> {
pub items: Vec<T>,
pub next_page_key: Option<K>,
}Expand description
A page of elements.
Fields§
§items: Vec<T>List of elements present in the page.
next_page_key: Option<K>Optional key to the next page to fetch. If this is None means that there aren’t other pages to fetch.
Auto Trait Implementations§
impl<T, K> Freeze for Page<T, K>where
K: Freeze,
impl<T, K> RefUnwindSafe for Page<T, K>where
K: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, K> Send for Page<T, K>
impl<T, K> Sync for Page<T, K>
impl<T, K> Unpin for Page<T, K>
impl<T, K> UnwindSafe for Page<T, K>where
K: 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