Skip to main content

Module pagination

Module pagination 

Source
Expand description

Generic pagination wrapper used across paginated endpoints.

Anthropic’s list endpoints return:

{
    "data": [...],
    "has_more": false,
    "first_id": "...",
    "last_id": "..."
}

Paginated<T> models that envelope. Caller-driven paging via Paginated::next_after / Paginated::next_before; auto-paginating collectors (e.g. Models::list_all) live on each endpoint and return Vec<T> for v0.1.

Structs§

Paginated
One page of items returned from a paginated list endpoint.
PaginatedNextPage
Pagination envelope for endpoints that use opaque next_page cursors instead of after_id / before_id. Used by Skills, the Admin API’s reports + rate-limit lists, and a few other surfaces.