pub trait PaginatedRequest: Request + Clone {
type PaginationData;
// Required methods
fn get_page(&self) -> Option<Self::PaginationData>;
fn next_page(
&self,
prev_page: Option<&Self::PaginationData>,
response: &Self::Response,
) -> Option<Self::PaginationData>;
fn update_request(&mut self, page: &Self::PaginationData);
}Required Associated Types§
type PaginationData
Required Methods§
fn get_page(&self) -> Option<Self::PaginationData>
fn next_page( &self, prev_page: Option<&Self::PaginationData>, response: &Self::Response, ) -> Option<Self::PaginationData>
fn update_request(&mut self, page: &Self::PaginationData)
Object Safety§
This trait is not object safe.