Expand description
§autumn-admin-plugin
Out-of-the-box admin panel plugin for autumn-web applications.
Provides auto-generated CRUD views, search, filtering, and audit trails
for any model registered via the AdminPlugin builder. The UI is
server-rendered with Maud + HTMX — no JS build step required.
§Quick start
ⓘ
use autumn_admin_plugin::AdminPlugin;
autumn_web::app()
.plugin(
AdminPlugin::new()
.register(ProjectAdmin::default())
.register(TicketAdmin::default()),
)
.routes(routes![...])
.run()
.await;§Security
The plugin requires the "admin" role in the session by default. Override
with AdminPlugin::require_role (pass None to disable; not recommended
for production).
§Naming convention
First-party plugin: autumn-<name>-plugin.
Structs§
- Admin
Action - A named bulk action that can be performed on selected records.
- Admin
Field - Metadata for a single model field.
- Admin
Plugin - The admin panel plugin.
- Admin
Registry - Holds all registered admin models, keyed by their URL slug.
Enums§
- Admin
Field Kind - The kind of a model field, used to select the appropriate form widget.
Traits§
- Admin
Model - The core trait that enables a model to be managed in the admin panel.