pub struct HookEntry {
pub name: Option<String>,
pub matcher: HookMatcher,
pub handler: HookHandlerSpec,
pub source: ConfigSource,
}Expand description
A single hook configuration: matcher + handler + source layer.
Fields§
§name: Option<String>Optional human-readable name, used only for tracing/observability to identify this
hook.
None ⇒ falls back to an anonymous label at assembly time (see defect-cli’s
hook assembly).
Does not participate in deduplication or disable matching (that only uses matcher
- handler) — purely for display.
matcher: HookMatcher§handler: HookHandlerSpec§source: ConfigSourceThe source layer of this hook. Phase G’s trust gating uses it to decide whether explicit trust is required.
Trait Implementations§
impl StructuralPartialEq for HookEntry
Auto Trait Implementations§
impl Freeze for HookEntry
impl RefUnwindSafe for HookEntry
impl Send for HookEntry
impl Sync for HookEntry
impl Unpin for HookEntry
impl UnsafeUnpin for HookEntry
impl UnwindSafe for HookEntry
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