#[non_exhaustive]pub enum EventKind {
State {
from: RunState,
to: RunState,
},
Step {
step: String,
state: StepState,
label: Option<String>,
count: Option<StepCount>,
},
Log {
step: String,
stream: Stream,
line: String,
},
Output {
name: String,
value: Option<String>,
sensitive: bool,
},
Warning {
code: WarningCode,
message: String,
},
Result {
ok: bool,
data: ResultData,
},
Operation {
phase: OperationPhase,
outcome: Option<Outcome>,
position: Option<u32>,
},
Desired {
desired: Desired,
},
Resource {
key: String,
kind: ResourceKind,
state: ResourceState,
native_id: Option<String>,
},
Error(ErrorReport),
}Expand description
What happened.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
State
The run moved from one state to another.
Step
A step started, moved on, finished, failed or was skipped: one of the format’s own
(crate::Phase, whose id the step is).
Fields
step: StringThe step’s id (crate::Phase::id).
Log
A line a step’s tool printed.
Fields
Output
An output’s value, once the run is up.
Fields
Warning
Something the embedder may show, that didn’t fail the operation.
Result
The operation’s outcome, when it ran to its end.
Fields
data: ResultDataWhat it found or produced, by operation.
Operation
A journaled operation was queued, started or ended: what a runner service says of the
operations it queues (the runner’s own operation stream doesn’t carry it: it still ends
with exactly one result or error).
Fields
phase: OperationPhaseWhere the operation stands.
Desired
What the user wants of the run changed: an operation that moves it began (up, resume:
running; park: parked; down: gone).
Resource
A resource of the run moved in the home’s write-ahead ledger: written creating before
the call that makes it, created with the tool’s id after it, destroying before the call
that removes it, gone after.
Error(ErrorReport)
Why the operation failed: its code, message, step, typed fields and whether the run was
touched (crate::ErrorReport).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EventKind
impl<'de> Deserialize<'de> for EventKind
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 JsonSchema for EventKind
impl JsonSchema for EventKind
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more