Expand description
A resource’s list view: the Table builder and its columns and filters, the URL state a list
reads, query planning (filter_expr/search_expr/order_bys_for), and the page a table loads.
Rendering lives in render, CSV export in export.
Structs§
- Boolean
Column - A column of a
boolfield rendered as an icon. - Computed
Column - A display-only column rendering any text from the row, with no query predicate.
- Date
Filter - Date filter matching a
Timestampfield by calendar day. - Filter
Input - What a
Filter::controlrenders for one request. - Includes
- The relations a
Columnreads off its row. - Query
Filter - A filter offering named predicates, such as an embedded-enum variant or any query the app names.
- Select
Filter - Select filter matching a
Stringfield exactly. - Sort
- Which column the table is currently sorted by, parsed from
?sort=<column>&dir=asc|desc. - Table
- Table description of a
Resource’s list view declaring columns and how they map to queries. - Table
Page - One executed page of rows for
Table::render. - Table
State - Request-scoped table state, parsed from the list’s URL query.
- Ternary
Filter - Ternary filter matching a
boolfield. - Text
Column - A column of one field, rendered as text and bound through a
Lensfor sorting and search.
Enums§
- Column
Width - The width a
Columnclaims in the table’s fixed layout. - Cursor
- A pagination cursor: the page after, or the page before, an encoded row.
Constants§
- DEFAULT_
PAGE_ SIZE - The page size of a table that declares none with
Table::paginate.
Traits§
- Column
- One table column declares its header, its cell, and its query predicates.
- Filter
- One table filter declares a control and its predicate.
- Into
Columns - Convert a single built-in column, a tuple of any
Columns, aVecor slice of boxed columns, or()for none yet, into a table’s column list. - Into
Filters - Convert a single built-in filter, or a tuple of any
Filters, into a table’s filter list.
Functions§
- contains_
expr - Escaped substring predicate for
lensmatchingterm.