use crate::error::FromHttpError;
pub trait Response: Sized {
fn try_from_http_response<T: AsRef<[u8]>>(
response: http::Response<T>,
) -> Result<Self, FromHttpError>;
}
pub trait PaginatedResponse: Response {
type Item;
fn items(&self) -> &[Self::Item];
fn next_page(&self) -> Option<crate::Pagination>;
}