View Source Guesswork.Telemetry.PaginatedResponse (Guesswork v0.6.0)

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.

Summary

Types

@type t(elem) :: %Guesswork.Telemetry.PaginatedResponse{
  next_page_token: nil | term(),
  values: [elem]
}

Functions

Link to this function

new(values \\ [], next_page_token \\ nil)

View Source