pub struct ChildLifecycleRecord {
pub child_run_id: RunId,
pub parent_run_id: RunId,
pub artifact_kind: ChildArtifactKind,
pub action: ChildLifecycleAction,
pub status: ChildLifecycleStatus,
pub policy_refs: Vec<PolicyRef>,
pub host_ack_ref: Option<String>,
pub reclaim_policy_ref: Option<PolicyRef>,
pub effect_intent: Option<EffectIntent>,
pub effect_result: Option<EffectResult>,
pub idempotency_key: IdempotencyKey,
}Expand description
Carries the child lifecycle record 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§
§child_run_id: RunIdStable child run id used for typed lineage, lookup, or dedupe.
parent_run_id: RunIdStable parent run id used for typed lineage, lookup, or dedupe.
artifact_kind: ChildArtifactKindKind discriminator for artifact kind. Use it to route finite match arms without parsing display text.
action: ChildLifecycleActionAction used by this record or request.
status: ChildLifecycleStatusFinite status for this record or lifecycle stage.
policy_refs: Vec<PolicyRef>Policy references that govern admission, projection, execution, or delivery.
host_ack_ref: Option<String>Typed host ack ref reference. Resolving or executing it is a separate policy-gated step.
reclaim_policy_ref: Option<PolicyRef>Typed reclaim policy ref reference. Resolving or executing it is a separate policy-gated step.
effect_intent: Option<EffectIntent>Optional effect intent value. When absent, callers should use the documented default or skip that optional behavior.
effect_result: Option<EffectResult>Optional effect result value. When absent, callers should use the documented default or skip that optional behavior.
idempotency_key: IdempotencyKeyIdempotency setting or key for deduping retries. Use it to prevent duplicate side effects during replay or repair.
Implementations§
Source§impl ChildLifecycleRecord
impl ChildLifecycleRecord
Sourcepub fn shutdown_intent(
parent_run_id: RunId,
child_run_id: RunId,
policy_refs: Vec<PolicyRef>,
idempotency_key: IdempotencyKey,
) -> Self
pub fn shutdown_intent( parent_run_id: RunId, child_run_id: RunId, policy_refs: Vec<PolicyRef>, idempotency_key: IdempotencyKey, ) -> Self
Builds the shutdown intent record or result value. This is data-only and does not perform I/O, call host ports, append journals, publish events, or start processes.
Sourcepub fn shutdown_completed(&self) -> Self
pub fn shutdown_completed(&self) -> Self
Builds the shutdown completed record or result value. This is data-only and does not perform I/O, call host ports, append journals, publish events, or start processes.
Sourcepub fn detach_intent(
parent_run_id: RunId,
child_run_id: RunId,
policy_refs: Vec<PolicyRef>,
host_ack_ref: String,
reclaim_policy_ref: PolicyRef,
idempotency_key: IdempotencyKey,
) -> Self
pub fn detach_intent( parent_run_id: RunId, child_run_id: RunId, policy_refs: Vec<PolicyRef>, host_ack_ref: String, reclaim_policy_ref: PolicyRef, idempotency_key: IdempotencyKey, ) -> Self
Detach intent. This is data-only and does not perform I/O, call host ports, append journals, publish events, or start processes.
Trait Implementations§
Source§impl Clone for ChildLifecycleRecord
impl Clone for ChildLifecycleRecord
Source§fn clone(&self) -> ChildLifecycleRecord
fn clone(&self) -> ChildLifecycleRecord
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 ChildLifecycleRecord
impl Debug for ChildLifecycleRecord
Source§impl<'de> Deserialize<'de> for ChildLifecycleRecord
impl<'de> Deserialize<'de> for ChildLifecycleRecord
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 ChildLifecycleRecord
impl PartialEq for ChildLifecycleRecord
Source§fn eq(&self, other: &ChildLifecycleRecord) -> bool
fn eq(&self, other: &ChildLifecycleRecord) -> bool
self and other values to be equal, and is used by ==.