#[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 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
source§fn eq(&self, other: &FailureConditionsBuilder) -> bool
fn eq(&self, other: &FailureConditionsBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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> 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.