pub struct InputState {Show 15 fields
pub input_id: InputId,
pub current_state: InputLifecycleState,
pub policy: Option<PolicySnapshot>,
pub terminal_outcome: Option<InputTerminalOutcome>,
pub durability: Option<InputDurability>,
pub idempotency_key: Option<IdempotencyKey>,
pub attempt_count: u32,
pub recovery_count: u32,
pub history: Vec<InputStateHistoryEntry>,
pub reconstruction_source: Option<ReconstructionSource>,
pub persisted_input: Option<Input>,
pub last_run_id: Option<RunId>,
pub last_boundary_sequence: Option<u64>,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
}Expand description
Full state of an input in the runtime.
Fields§
§input_id: InputIdThe input ID.
current_state: InputLifecycleStateCurrent lifecycle state.
policy: Option<PolicySnapshot>Policy snapshot applied to this input.
terminal_outcome: Option<InputTerminalOutcome>Terminal outcome (set when state becomes terminal).
durability: Option<InputDurability>Durability requirement (retained for recovery correctness).
idempotency_key: Option<IdempotencyKey>Idempotency key (retained for dedup across restarts).
attempt_count: u32Number of times this input has been applied (for crash-loop detection).
recovery_count: u32Number of times this input has been recovered.
history: Vec<InputStateHistoryEntry>State transition history.
reconstruction_source: Option<ReconstructionSource>How to reconstruct this input (for derived inputs).
persisted_input: Option<Input>Persisted input payload used to rebuild queued work after recovery.
last_run_id: Option<RunId>Last run that touched this input.
last_boundary_sequence: Option<u64>Boundary receipt sequence for the last applied run.
created_at: DateTime<Utc>When the input was created.
updated_at: DateTime<Utc>When the input was last updated.
Implementations§
Source§impl InputState
impl InputState
Sourcepub fn new_accepted(input_id: InputId) -> Self
pub fn new_accepted(input_id: InputId) -> Self
Create a new InputState in the Accepted state.
Sourcepub fn is_terminal(&self) -> bool
pub fn is_terminal(&self) -> bool
Check if the input is in a terminal state.
Trait Implementations§
Source§impl Clone for InputState
impl Clone for InputState
Source§fn clone(&self) -> InputState
fn clone(&self) -> InputState
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more