Skip to main content

Module pagination

Module pagination 

Source
Expand description

Cursor pagination helpers shared by list endpoints.

![warn] This module is untested! If you encounter any issues, please report them on the repository.

OpenAI-compatible list endpoints return a page object with a data array and pagination cursor fields. The Page type models that shape generically, and PaginationQuery collects the standard query parameters so individual list requests can embed it via Deref-style composition or flattening.

Structs§

Page
A single page of a paginated list response.
PaginationQuery
The standard pagination query parameters accepted by most list endpoints.

Enums§

PaginationOrder
The sort order of objects in a list response.