Skip to main content

Module admin

Module admin 

Source
Expand description

Auto-generated CRUD admin backed by crate::orm.

Build an Admin by chaining .model::<T>() calls, then mount it with Admin::register. This attaches list / create / edit / delete routes at /admin/<admin_name> for each model and an index page at /admin listing every registered model.

For a single-model app, register is a convenience wrapper.

Re-exports§

pub use crate::http::FormData;

Structs§

Admin
Builder that collects admin models and mounts them with a shared /admin index page.
AdminEntry
Metadata about one registered admin model.
AdminField

Enums§

FieldType

Traits§

AdminModel

Functions§

register
Convenience: mount CRUD routes and an /admin index for a single model. Equivalent to Admin::new().model::<T>().register(router, db).