Expand description
Generated-model CRUD lifecycle hooks.
Hooks are attached to a schema-bound generated manager. Pre-hooks run in registration order and may reject an operation. Post-hooks run in reverse order after a successful commit; their errors are logged and do not change the committed result.
Structs§
- Hook
Context - Context shared with one generated lifecycle hook.
Enums§
- Crud
Operation - Generated CRUD operation presented to lifecycle hooks.
- Hook
Error - Failure returned by one generated lifecycle hook.
- Model
Kind - Generated thing kind presented to lifecycle hooks.
- PreHook
Result - Result of a generated pre-operation hook.
Traits§
- Lifecycle
Hook - Object-safe lifecycle hook for an exact generated entity or relation.
Type Aliases§
- Hook
Future - Boxed future returned by an object-safe generated lifecycle hook.