#[non_exhaustive]pub struct FailureConditionsBuilder { /* private fields */ }
Expand description
A builder for FailureConditions
.
Implementations§
source§impl FailureConditionsBuilder
impl FailureConditionsBuilder
sourcepub fn result(self, input: Result) -> Self
pub fn result(self, input: Result) -> Self
The specified result for when the failure conditions are met, such as rolling back the stage.
sourcepub fn set_result(self, input: Option<Result>) -> Self
pub fn set_result(self, input: Option<Result>) -> Self
The specified result for when the failure conditions are met, such as rolling back the stage.
sourcepub fn get_result(&self) -> &Option<Result>
pub fn get_result(&self) -> &Option<Result>
The specified result for when the failure conditions are met, such as rolling back the stage.
sourcepub fn conditions(self, input: Condition) -> Self
pub fn conditions(self, input: Condition) -> Self
Appends an item to conditions
.
To override the contents of this collection use set_conditions
.
The conditions that are configured as failure conditions.
sourcepub fn set_conditions(self, input: Option<Vec<Condition>>) -> Self
pub fn set_conditions(self, input: Option<Vec<Condition>>) -> Self
The conditions that are configured as failure conditions.
sourcepub fn get_conditions(&self) -> &Option<Vec<Condition>>
pub fn get_conditions(&self) -> &Option<Vec<Condition>>
The conditions that are configured as failure conditions.
sourcepub fn build(self) -> FailureConditions
pub fn build(self) -> FailureConditions
Consumes the builder and constructs a FailureConditions
.
Trait Implementations§
source§impl Clone for FailureConditionsBuilder
impl Clone for FailureConditionsBuilder
source§fn clone(&self) -> FailureConditionsBuilder
fn clone(&self) -> FailureConditionsBuilder
Returns a copy 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 moresource§impl Debug for FailureConditionsBuilder
impl Debug for FailureConditionsBuilder
source§impl Default for FailureConditionsBuilder
impl Default for FailureConditionsBuilder
source§fn default() -> FailureConditionsBuilder
fn default() -> FailureConditionsBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for FailureConditionsBuilder
impl PartialEq for FailureConditionsBuilder
impl StructuralPartialEq for FailureConditionsBuilder
Auto Trait Implementations§
impl Freeze for FailureConditionsBuilder
impl RefUnwindSafe for FailureConditionsBuilder
impl Send for FailureConditionsBuilder
impl Sync for FailureConditionsBuilder
impl Unpin for FailureConditionsBuilder
impl UnwindSafe for FailureConditionsBuilder
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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 moreCreates a shared type from an unshared type.