pub enum HookRecordPayload {
Registered {
spec_hash: String,
executor_ref: String,
policy_ref: PolicyRef,
},
InvocationStarted {
invocation_id: String,
},
Completed {
invocation_id: String,
elapsed_ms: u64,
},
TimedOut {
invocation_id: String,
elapsed_ms: u64,
failure_policy: String,
},
Cancelled {
invocation_id: String,
},
Failed {
invocation_id: String,
failure_policy: String,
redacted_summary: String,
},
ResponseDecision {
invocation_id: String,
decision: HookResponseDecision,
response_class: HookResponseClass,
mutation_right_decision: String,
target_domain_refs: Vec<EntityRef>,
},
}Expand description
Enumerates the finite hook record payload cases. Serialized names are part of the SDK contract; update fixtures when variants change.
Variants§
Registered
Use this variant when the contract needs to represent registered; selecting it has no side effect by itself.
Fields
spec_hash: StringDeterministic spec hash used for stale checks, package evidence, or replay comparisons.
InvocationStarted
Use this variant when the contract needs to represent invocation started; selecting it has no side effect by itself.
Completed
Use this variant when the contract needs to represent completed; selecting it has no side effect by itself.
Fields
TimedOut
Use this variant when the contract needs to represent timed out; selecting it has no side effect by itself.
Fields
Cancelled
Use this variant when the contract needs to represent cancelled; selecting it has no side effect by itself.
Failed
Use this variant when the contract needs to represent failed; selecting it has no side effect by itself.
Fields
ResponseDecision
Use this variant when the contract needs to represent response decision; selecting it has no side effect by itself.
Fields
decision: HookResponseDecisionDecision used by this record or request.
response_class: HookResponseClassClassification value for response class. Policy and projection paths use it for finite routing decisions.
Trait Implementations§
Source§impl Clone for HookRecordPayload
impl Clone for HookRecordPayload
Source§fn clone(&self) -> HookRecordPayload
fn clone(&self) -> HookRecordPayload
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 HookRecordPayload
impl Debug for HookRecordPayload
Source§impl<'de> Deserialize<'de> for HookRecordPayload
impl<'de> Deserialize<'de> for HookRecordPayload
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>,
Source§impl PartialEq for HookRecordPayload
impl PartialEq for HookRecordPayload
Source§fn eq(&self, other: &HookRecordPayload) -> bool
fn eq(&self, other: &HookRecordPayload) -> bool
self and other values to be equal, and is used by ==.