View Source Guesswork.Telemetry.PaginatedResponse (Guesswork v0.4.4)
A paginated response, along with the token needed pull the next page.
Note that a non-nil next_page_token
does not mean there is certain to be
another page.
In the case where the page size evenly divides the total number of items you
will have one empty page at the end.
TODO: (#52), currently the next_page_token
is just an ets continuation, but
this implementation detail should be hidden from the user somehow.
Summary
Types
@type t(elem) :: %Guesswork.Telemetry.PaginatedResponse{ next_page_token: nil | term(), values: [elem] }