pub trait Pagination {
    type Item: DeserializeOwned;

    fn has_more_pages(&self) -> bool;
    fn next_page(&self, req: Request) -> Result<Request, Error>;
    fn items(&self) -> Vec<Self::Item>Notable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
    A: Allocator
; }
Expand description

A trait for types that allow pagination.

Required Associated Types

The item that is paginated.

Required Methods

Returns true if the response has more pages.

Modify a request to get the next page.

Get the items from a page.

Implementors