Trait to turn paginated APIs into async streams
simonsan opened this issue · 1 comments
simonsan commented
'Page_turner' crate helps to abstract away any sort of pagination and allows you to work with such APIs uniformly with the help of async streams. All you need to do is to implement the
PageTurner
trait.
https://docs.rs/page-turner/latest/page_turner/
Sounds interesting, maybe this could be useful?
Emilgardis commented
That does seem like an easier (read "better") interface than make_stream
I'm not sure it'd work with #114 though