Results for “Std.App.Page.Page”
8 matching declarations
Use module:Std.List, kind:fn, or is:exact. Put a Pudu type after ::.
- Std.App.Page.Page
One page: its items and the cursor for the page after it, absent on the
- Std.App.Page.decodeCursor
Str -> Result[Str, Std.App.Page.PageError]The key a cursor names.
- Std.App.Page.explain
&Std.App.Page.PageError -> StrA one-line description of a refusal.
- Std.App.Page.fromFetched
&Array[T] -> fn(T) -> Str -> &Std.App.Page.Request -> Std.App.Page.Page[T]A page built from a fetch that asked a store for
size + 1rows: the - Std.App.Page.linkHeader
Str -> &Std.App.Page.Page[T] -> &Std.App.Page.Request -> Option[(Str, Str)]The
Linkheader (RFC 8288) pointing at the next page, carrying the - Std.App.Page.request
&Map[Str, Str] -> Int -> Int -> Result[Std.App.Page.Request, Std.App.Page.PageError]Reads
limitandcursorfrom a query. - Std.App.Page.select
&Array[T] -> fn(T) -> Str -> &Std.App.Page.Request -> Std.App.Page.Page[T]The page of
itemsa request selects. - Std.App.Page.toJson
&Std.App.Page.Page[T] -> fn(T) -> Std.Json.Json -> Std.Json.Json{"items": [...], "next": "..."}, withnextnull on the last page.
