#[non_exhaustive]pub struct WorkflowChild {
pub child_id: String,
pub attempt: u32,
pub status: String,
pub phase: Option<String>,
pub label: Option<String>,
pub usage: Option<TokenUsage>,
pub duration_ms: Option<u64>,
pub terminal: Option<TurnTerminal>,
pub result_ref: Option<String>,
pub failure_kind: Option<String>,
pub failure_reason: Option<String>,
}Expand description
One workflow child’s folded state, keyed by (childId, attempt).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.child_id: StringThe child’s id within the run.
attempt: u32The attempt number.
status: StringcamelCased WorkflowChildLifecycleStatus, verbatim (durable runtime
vocabulary).
phase: Option<String>The child’s phase, when recorded.
label: Option<String>The child’s display label, when recorded.
usage: Option<TokenUsage>The child’s observed usage, when recorded.
duration_ms: Option<u64>The child’s observed duration, when recorded.
terminal: Option<TurnTerminal>The child’s terminal, turn vocabulary.
result_ref: Option<String>The child’s recorded result reference, verbatim, when present — an opaque string, matching the durable owner.
failure_kind: Option<String>The attempt’s machine failure class, verbatim when recorded. The
attempt’s outcome (terminal, else status) stays authoritative,
except that "completed" with failureKind present means it failed.
failure_reason: Option<String>The attempt’s failure reason text, verbatim when recorded except cut to at most 2,048 UTF-8 bytes ending in U+2026 when longer.