pub struct PipelineStep {
pub name: String,
pub phase: PipelinePhase,
pub required: bool,
pub status: StepStatus,
pub error: Option<String>,
}Expand description
A single named operation within a PipelinePhase.
Fields§
§name: StringHuman-readable name of this step.
phase: PipelinePhaseThe phase this step belongs to.
required: boolWhether this step must succeed for the pipeline to advance.
status: StepStatusCurrent completion status.
error: Option<String>Optional error message set when status is StepStatus::Failed.
Implementations§
Source§impl PipelineStep
impl PipelineStep
Sourcepub fn new(name: impl Into<String>, phase: PipelinePhase) -> Self
pub fn new(name: impl Into<String>, phase: PipelinePhase) -> Self
Create a new required step in Pending state.
Sourcepub fn optional(name: impl Into<String>, phase: PipelinePhase) -> Self
pub fn optional(name: impl Into<String>, phase: PipelinePhase) -> Self
Create an optional step (failure will not block the pipeline).
Sourcepub fn is_blocking(&self) -> bool
pub fn is_blocking(&self) -> bool
Return true if this step blocks pipeline advancement when failed.
Trait Implementations§
Source§impl Clone for PipelineStep
impl Clone for PipelineStep
Source§fn clone(&self) -> PipelineStep
fn clone(&self) -> PipelineStep
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PipelineStep
impl RefUnwindSafe for PipelineStep
impl Send for PipelineStep
impl Sync for PipelineStep
impl Unpin for PipelineStep
impl UnsafeUnpin for PipelineStep
impl UnwindSafe for PipelineStep
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,
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