pub struct HookInvocationOutcome {
pub hook_id: HookId,
pub status: HookInvocationStatus,
pub response_class: Option<HookResponseClass>,
pub accepted_response: Option<HookResponse>,
pub journal_cursor: Option<JournalCursor>,
pub journaled_before_apply: bool,
pub record: HookRecord,
}Expand description
Holds hook invocation outcome application-layer state or configuration. Use it with the documented coordinator methods; run, journal, event, provider, or port effects are called out on those methods rather than on construction.
Fields§
§hook_id: HookIdStable hook id used for typed lineage, lookup, or dedupe.
status: HookInvocationStatusFinite status for this record or lifecycle stage.
response_class: Option<HookResponseClass>Classification value for response class. Policy and projection paths use it for finite routing decisions.
accepted_response: Option<HookResponse>Accepted hook response for behavior-changing outcomes. Callers may lower this into the guarded domain operation after journal-before-apply succeeds.
journal_cursor: Option<JournalCursor>Cursor identifying a replay, export, or subscription position. Use it to resume without widening the original scope.
journaled_before_apply: boolWhether journaled before apply is enabled. Policy, validation, or routing code uses this flag to choose the explicit behavior.
record: HookRecordRecord used by this record or request.
Trait Implementations§
Source§impl Clone for HookInvocationOutcome
impl Clone for HookInvocationOutcome
Source§fn clone(&self) -> HookInvocationOutcome
fn clone(&self) -> HookInvocationOutcome
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 HookInvocationOutcome
impl Debug for HookInvocationOutcome
impl Eq for HookInvocationOutcome
Source§impl PartialEq for HookInvocationOutcome
impl PartialEq for HookInvocationOutcome
Source§fn eq(&self, other: &HookInvocationOutcome) -> bool
fn eq(&self, other: &HookInvocationOutcome) -> bool
self and other values to be equal, and is used by ==.