pub enum RunStatus {
Pending,
Running,
Cancelling,
Completed,
Failed,
Cancelled,
RepairNeeded,
}Expand description
Enumerates the finite run status cases. Serialized names are part of the SDK contract; update fixtures when variants change.
Variants§
Pending
Use this variant when the contract needs to represent pending; selecting it has no side effect by itself.
Running
Use this variant when the contract needs to represent running; selecting it has no side effect by itself.
Cancelling
Use this variant when the contract needs to represent cancelling; selecting it has no side effect by itself.
Completed
Use this variant when the contract needs to represent completed; selecting it has no side effect by itself.
Failed
Use this variant when the contract needs to represent failed; selecting it has no side effect by itself.
Cancelled
Use this variant when the contract needs to represent cancelled; selecting it has no side effect by itself.
RepairNeeded
Use this variant when the contract needs to represent repair needed; selecting it has no side effect by itself.
Implementations§
Source§impl RunStatus
impl RunStatus
Sourcepub fn is_terminal(&self) -> bool
pub fn is_terminal(&self) -> bool
Reports whether this value is terminal. The check is pure and does not mutate SDK or host state.
Sourcepub fn as_terminal_str(&self) -> Option<&'static str>
pub fn as_terminal_str(&self) -> Option<&'static str>
Returns this value as terminal str. The accessor is side-effect free and keeps ownership with the caller.
Sourcepub fn from_terminal_str(value: &str) -> Option<Self>
pub fn from_terminal_str(value: &str) -> Option<Self>
Constructs this value from terminal str. Use it when adapting canonical SDK records without introducing a second behavior path.