#[non_exhaustive]pub enum EventKind {
State {
from: RunState,
to: RunState,
},
Step {
step: String,
state: StepState,
note: Option<String>,
},
Log {
step: String,
stream: Stream,
line: String,
},
Ready {
condition: String,
state: ReadyState,
detail: String,
},
Output {
name: String,
role: OutputRole,
value: Option<String>,
sensitive: bool,
},
Check {
runner: String,
from: String,
name: String,
ok: bool,
detail: String,
},
Warning {
code: WarningCode,
message: String,
},
Result {
ok: bool,
data: Value,
},
Error {
code: ErrorCode,
message: String,
step: Option<String>,
},
}Expand description
What happened.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
State
The run moved from one state to another.
Step
A step started, finished, failed or was skipped.
Fields
Log
A line a step’s tool printed.
Fields
Ready
A ready condition was checked.
Fields
§
state: ReadyStateWhere it stands.
Output
An output’s value, once the run is up.
Fields
§
role: OutputRoleWhat it is for.
Check
One check’s result.
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
Error
Why the operation failed.
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for EventKind
impl JsonSchema for EventKind
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for EventKind
Auto Trait Implementations§
impl Freeze for EventKind
impl RefUnwindSafe for EventKind
impl Send for EventKind
impl Sync for EventKind
impl Unpin for EventKind
impl UnsafeUnpin for EventKind
impl UnwindSafe for EventKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more