pub struct GateRunOutcome {
pub name: String,
pub status: DagGateStatus,
pub duration_ms: u64,
pub dependencies: Vec<String>,
pub skip_reason: Option<String>,
}Expand description
Per-gate report row suitable for headless --report gates JSON output.
All fields are serde-serializable. duration_ms uses u64 so it is easy
to consume from JSON (no need to parse a duration string).
Fields§
§name: StringUnique gate name within the DAG.
status: DagGateStatusTerminal status after execution (snake_case serialization).
duration_ms: u64Wall-clock execution time in milliseconds.
dependencies: Vec<String>Names of prerequisite gates.
skip_reason: Option<String>Human-readable reason the gate was skipped, or None.
Implementations§
Source§impl GateRunOutcome
impl GateRunOutcome
Sourcepub fn from_result(result: &GateResult, def: &GateDefinition) -> Self
pub fn from_result(result: &GateResult, def: &GateDefinition) -> Self
Build a GateRunOutcome from a completed GateResult and its definition.
Trait Implementations§
Source§impl Clone for GateRunOutcome
impl Clone for GateRunOutcome
Source§fn clone(&self) -> GateRunOutcome
fn clone(&self) -> GateRunOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GateRunOutcome
impl Debug for GateRunOutcome
Source§impl<'de> Deserialize<'de> for GateRunOutcome
impl<'de> Deserialize<'de> for GateRunOutcome
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
Auto Trait Implementations§
impl Freeze for GateRunOutcome
impl RefUnwindSafe for GateRunOutcome
impl Send for GateRunOutcome
impl Sync for GateRunOutcome
impl Unpin for GateRunOutcome
impl UnsafeUnpin for GateRunOutcome
impl UnwindSafe for GateRunOutcome
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more