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
type Item: DeserializeOwned
type Item: DeserializeOwned
The item that is paginated.
Required Methods
fn has_more_pages(&self) -> bool
fn has_more_pages(&self) -> bool
Returns true if the response has more pages.
Modify a request to get the next page.