pub trait Hooks: Table + Bind {
const HOOKS: &'static [&'static dyn Hook<Self>];
}Expand description
A trait for associating a set of hooks with a table entity.
Implementors can define a static array of hooks that are associated with a table entity. These hooks are invoked at their respective stages during the query execution process, enabling custom behaviors or validations.
Required Associated Constants§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.