pub struct LifecycleHookRef {
pub name: String,
pub handler: String,
pub dependencies: Vec<String>,
pub config: Option<Value>,
pub order: Option<u32>,
}Expand description
A single lifecycle hook reference within a LifecycleHooksConfig phase.
Matches the fixture shape exactly (fixtures/lifecycle_hooks.json, fixtures/di.json): each
entry is an object with a required name and handler, an optional list of dependency keys,
and an optional free-form config blob (e.g. {"max_requests": 10, "window_seconds": 60} for
a rate-limiting hook). deny_unknown_fields turns future fixture drift into a loud error. ~keep
Fields§
§name: StringRegistered name of the hook to run, resolved against the server’s LifecycleHooks
handler: StringName of the handler function this hook invokes
dependencies: Vec<String>Dependency keys this hook requires (for DI), resolved before the hook runs
config: Option<Value>Optional free-form configuration passed to the hook (e.g. rate-limit thresholds)
order: Option<u32>Explicit execution order within the phase, where the corpus states one
(fixtures/lifecycle_hooks.json’s hook_execution_order). Array position already implies
an order, so this exists to let a fixture assert ordering rather than rely on it. ~keep
Trait Implementations§
Source§impl Clone for LifecycleHookRef
impl Clone for LifecycleHookRef
Source§impl Debug for LifecycleHookRef
impl Debug for LifecycleHookRef
Source§impl Default for LifecycleHookRef
impl Default for LifecycleHookRef
Source§impl<'de> Deserialize<'de> for LifecycleHookRef
impl<'de> Deserialize<'de> for LifecycleHookRef
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for LifecycleHookRef
Source§impl PartialEq for LifecycleHookRef
impl PartialEq for LifecycleHookRef
Source§impl Serialize for LifecycleHookRef
impl Serialize for LifecycleHookRef
impl StructuralPartialEq for LifecycleHookRef
Auto Trait Implementations§
impl Freeze for LifecycleHookRef
impl RefUnwindSafe for LifecycleHookRef
impl Send for LifecycleHookRef
impl Sync for LifecycleHookRef
impl Unpin for LifecycleHookRef
impl UnsafeUnpin for LifecycleHookRef
impl UnwindSafe for LifecycleHookRef
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.