Expand description
Unified request-side query parsing for list-like admin routes.
ListQuery merges what used to be Params, SearchParams, ad-hoc
form-body field parsing (in delete_many) and parse_filters_from_query
into a single value that:
- ignores unknown / unparseable keys (never panics on user input),
- normalises defaults against a
ActixAdminViewModel, - knows how to round-trip itself back into a URL query string,
- can produce an
ActixAdminViewModelParamsfor the ORM layer.
Both the querystring (list / export / search) and the form body (delete_many) go through the same parser so the URL-encoded shape of a filter/pagination state is defined in exactly one place.
Structs§
- List
Query - Fully-resolved list-page query state: pagination, search, sort and filters, normalized against the entity’s view model.
- Params
- The subset of a request’s query string this crate understands. Extra unknown keys are ignored.
Functions§
- parse_
filters_ from_ query - Parse
filter_<name>=valuequerystring fragments into filters, without panicking on malformed input.