pub fn json_page(items: Vec<Value>, total: i64, window: Window) -> ValueExpand description
The envelope a paged --json listing answers with.
Deliberately the same four members, spelled the same way, as
crate::webadmin::handlers::paging::page_envelope: total is what the
same filters match unpaged, which is the whole difference between having
read the table and having read a page of it, and a script should not have to
learn one shape for the API and another for the shell.
The unpaged listings beside this one — eab list, admin user list,
admin session list — stay bare arrays through print_rows. Those are
tables an operator mints by hand, a few rows at a time; nothing there is a
page, so nothing there has a total to report.