pub struct Page<T> { /* private fields */ }Expand description
One page of a paginated read, with the cursor Fizzy handed out for the next one.
The page derefs to its value, so page.iter() on a page of boards reads the same as it
would on the Vec<Board> itself.
Implementations§
Source§impl<T> Page<T>
impl<T> Page<T>
Sourcepub fn into_inner(self) -> T
pub fn into_inner(self) -> T
The page’s contents, owned.
Sourcepub fn next_page(&self) -> Option<&str>
pub fn next_page(&self) -> Option<&str>
The opaque cursor for the page after this one, to pass as page on the same read.
Sourcepub fn next_url(&self) -> Option<&Url>
pub fn next_url(&self) -> Option<&Url>
The URL of the page after this one, as Fizzy’s Link header named it.
Sourcepub fn total_count(&self) -> Option<u64>
pub fn total_count(&self) -> Option<u64>
The X-Total-Count header, when the read carried one.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Page<T>where
T: Freeze,
impl<T> RefUnwindSafe for Page<T>where
T: RefUnwindSafe,
impl<T> Send for Page<T>where
T: Send,
impl<T> Sync for Page<T>where
T: Sync,
impl<T> Unpin for Page<T>where
T: Unpin,
impl<T> UnsafeUnpin for Page<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Page<T>where
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