pub async fn fetch_paged<P: Page>(
client: &ApiClient,
path: &str,
limits: PageLimits,
) -> Result<(Vec<P::Item>, PageInfo)>Expand description
Follow a paginated endpoint, collecting items until the limit, the budget, or the data runs out.
path is the first request, and it should carry whatever page-size
parameter the endpoint wants. Subsequent requests come from the server’s own
cursor, so the caller never rebuilds the query itself — appending a token to
a path that already has one is how a third page ends up with two
nextPageToken parameters.