pub struct HooksConfig {
pub buckets: BTreeMap<String, Vec<HookEntry>>,
}Expand description
Valid configuration for the hook system: pipelines are grouped by step event_name
and executed in declaration order within each group.
Bucket keys are the mount point’s event_name (snake_case, e.g. before_turn_end) —
the same set of names as defect_agent::hooks::step::ALL_EVENT_NAMES. A map is used
instead of fixed fields so that adding a new mount point requires no changes at the
config layer.
Fields§
§buckets: BTreeMap<String, Vec<HookEntry>>event_name → entries declared under that event, in declaration order.
Implementations§
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 (const: unstable) · 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 PartialEq for HooksConfig
impl PartialEq for HooksConfig
Source§fn eq(&self, other: &HooksConfig) -> bool
fn eq(&self, other: &HooksConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for HooksConfig
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