pub struct HooksConfig {
pub enabled: bool,
pub defaults: HookDefaults,
pub events: HashMap<HookPhaseEvent, Vec<HookSpec>>,
pub extra: HashMap<String, Value>,
}Expand description
Hooks configuration.
Controls per-project orchestrator lifecycle hooks. Hooks are disabled by default and are inert until explicitly enabled.
Example configuration:
hooks:
enabled: true
defaults:
timeout_seconds: 30
max_output_bytes: 8192
suspend_mode: wait_for_resume
events:
pre.loop.start:
- name: env-guard
command: ["./scripts/hooks/env-guard.sh"]
on_error: blockFields§
§enabled: boolWhether lifecycle hooks are enabled.
defaults: HookDefaultsDefault guardrails applied to hook specs when per-hook values are absent.
events: HashMap<HookPhaseEvent, Vec<HookSpec>>Hook lists by lifecycle phase-event key.
extra: HashMap<String, Value>Unknown keys captured for v1 guardrails.
Trait Implementations§
Source§impl Clone for HooksConfig
impl Clone for HooksConfig
Source§fn clone(&self) -> HooksConfig
fn clone(&self) -> HooksConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HooksConfig
impl Debug for HooksConfig
Source§impl Default for HooksConfig
impl Default for HooksConfig
Source§fn default() -> HooksConfig
fn default() -> HooksConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for HooksConfig
impl<'de> Deserialize<'de> for HooksConfig
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for HooksConfig
impl RefUnwindSafe for HooksConfig
impl Send for HooksConfig
impl Sync for HooksConfig
impl Unpin for HooksConfig
impl UnsafeUnpin for HooksConfig
impl UnwindSafe for HooksConfig
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
Mutably borrows from an owned value. Read more