Skip to content

adding a set page api

1024bees requested to merge 1024bees/rust-gitlab:set-page into master

hey folks,

this MR is added to support something like was #51 was suggesting; this PR adds an API to start fetching from "random page" from paginated query results. AFAICT, this isn't supported by the current API, and folks have to stream through results in order to get to later results

I implemented this API by adding a method onto LazilyPagedIter that simply sets the "page" (from gitlab's perspective), that we are fetching from.

If we'd like to move this API elsewhere I'd be open to suggestions, I am opinionated on how this functionality should be implimented

If this functionality exists already I'd love to know how to fetch results from a random page as things currently stand.

Merge request reports