pub struct HookMutationJournalPlan {
pub hook_record: HookRecord,
pub effect_intent: EffectIntent,
pub hook_journal_record: JournalRecord,
pub intent_journal_record: JournalRecord,
pub result_journal_record: JournalRecord,
}Expand description
Carries the hook mutation journal plan record payload for journal, event, or fixture surfaces. Creating or cloning it only preserves serialized SDK state; append, publish, replay, or export effects are documented on the runtime and port methods that store it.
Fields§
§hook_record: HookRecordHook record used by this record or request.
effect_intent: EffectIntentEffect intent used by this record or request.
hook_journal_record: JournalRecordHook journal record used by this record or request.
intent_journal_record: JournalRecordIntent journal record used by this record or request.
result_journal_record: JournalRecordResult journal record used by this record or request.
Implementations§
Source§impl HookMutationJournalPlan
impl HookMutationJournalPlan
Sourcepub fn accepted_response(
journal_seq: u64,
record_id: impl Into<String>,
run_id: RunId,
agent_id: AgentId,
source: SourceRef,
spec: &HookSpec,
invocation_id: impl Into<String>,
response_class: HookResponseClass,
runtime_package_fingerprint: impl Into<String>,
) -> Self
pub fn accepted_response( journal_seq: u64, record_id: impl Into<String>, run_id: RunId, agent_id: AgentId, source: SourceRef, spec: &HookSpec, invocation_id: impl Into<String>, response_class: HookResponseClass, runtime_package_fingerprint: impl Into<String>, ) -> Self
Builds the accepted response value. This is data construction and performs no I/O, journal append, event publication, or process work.
Trait Implementations§
Source§impl Clone for HookMutationJournalPlan
impl Clone for HookMutationJournalPlan
Source§fn clone(&self) -> HookMutationJournalPlan
fn clone(&self) -> HookMutationJournalPlan
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 HookMutationJournalPlan
impl Debug for HookMutationJournalPlan
Source§impl<'de> Deserialize<'de> for HookMutationJournalPlan
impl<'de> Deserialize<'de> for HookMutationJournalPlan
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for HookMutationJournalPlan
impl PartialEq for HookMutationJournalPlan
Source§fn eq(&self, other: &HookMutationJournalPlan) -> bool
fn eq(&self, other: &HookMutationJournalPlan) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for HookMutationJournalPlan
impl Serialize for HookMutationJournalPlan
impl Eq for HookMutationJournalPlan
impl StructuralPartialEq for HookMutationJournalPlan
Auto Trait Implementations§
impl Freeze for HookMutationJournalPlan
impl RefUnwindSafe for HookMutationJournalPlan
impl Send for HookMutationJournalPlan
impl Sync for HookMutationJournalPlan
impl Unpin for HookMutationJournalPlan
impl UnsafeUnpin for HookMutationJournalPlan
impl UnwindSafe for HookMutationJournalPlan
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