pub struct CapabilityHooks {
pub registered_count: usize,
pub webhook_events: Vec<String>,
pub hook_events_count: usize,
pub auto_export_spawn_failed_total: u64,
}Expand description
Hook-pipeline block (capabilities schema v2). Pre-v0.7 reports webhook subscriptions as the closest analogue. The full hook pipeline lands in v0.7 Bucket 0 (arch-enhancement-spec §2).
Fields§
§registered_count: usizeNumber of registered hook subscribers (proxy: webhook subscriptions).
webhook_events: Vec<String>v0.6.3.1 P5 (G9): canonical list of webhook event types the
daemon emits. Integrators pin the subscribe(event_types: …)
filter against these strings. Always populated so downstream
callers do not have to handle a missing field.
hook_events_count: usizev0.7.0 L1-7: total number of distinct HookEvent variants the
pipeline supports. Populated from the compile-time constant
HOOK_EVENTS_COUNT so operators and integrations can verify
they are running against the expected pipeline version without
enumerating the enum.
History: G2 shipped 20; G10 added the 21st; Task 6/8 added the 22nd + 23rd; L1-7 adds the 24th + 25th → total 25.
auto_export_spawn_failed_total: u64v0.7-polish SEC-15 / COR-11 (issue #780): mirror of the
process-wide
crate::metrics::auto_export_spawn_failed_total counter.
Non-zero means at least one post_reflect.auto_export detached
worker panicked or returned Err since process start — the
reflection is committed in the DB but its on-disk markdown/json
artefact did NOT land. Operators alert on a non-zero value
without scraping /metrics directly.
skip_serializing_if = is_zero_u64 keeps healthy daemons’
capabilities responses byte-identical to pre-#780 — only
daemons that have actually hit the failure path see the field
on the wire. The MCP/HTTP capabilities builder overlays the
live value at response time.
Trait Implementations§
Source§impl Clone for CapabilityHooks
impl Clone for CapabilityHooks
Source§fn clone(&self) -> CapabilityHooks
fn clone(&self) -> CapabilityHooks
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CapabilityHooks
impl Debug for CapabilityHooks
Source§impl Default for CapabilityHooks
impl Default for CapabilityHooks
Source§impl<'de> Deserialize<'de> for CapabilityHooks
impl<'de> Deserialize<'de> for CapabilityHooks
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>,
Auto Trait Implementations§
impl Freeze for CapabilityHooks
impl RefUnwindSafe for CapabilityHooks
impl Send for CapabilityHooks
impl Sync for CapabilityHooks
impl Unpin for CapabilityHooks
impl UnsafeUnpin for CapabilityHooks
impl UnwindSafe for CapabilityHooks
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
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>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more