Expand description
Attaching the package to an application, and reaching it from a handler.
ⓘ
App::new().plugin(Audit::new(db.clone()))The migrations are not registered from here: they belong in the registry
the CLI generates, next to the application’s own. Add them with
registry.extend(rustlavel_audit::migrations());
Structs§
Traits§
- Audit
Ext req.audit(...)— an entry with the request’s context already on it.