use anyhow::Result;
pub trait Pagination {
type Item: serde::de::DeserializeOwned;
fn has_more_pages(&self) -> bool;
fn next_page(
&self,
req: reqwest::Request,
) -> Result<reqwest::Request, crate::types::error::Error>;
fn items(&self) -> Vec<Self::Item>;
}