#[non_exhaustive]pub struct ConditionExecutionBuilder { /* private fields */ }
Expand description
A builder for ConditionExecution
.
Implementations§
source§impl ConditionExecutionBuilder
impl ConditionExecutionBuilder
sourcepub fn status(self, input: ConditionExecutionStatus) -> Self
pub fn status(self, input: ConditionExecutionStatus) -> Self
The status of the run for a condition.
sourcepub fn set_status(self, input: Option<ConditionExecutionStatus>) -> Self
pub fn set_status(self, input: Option<ConditionExecutionStatus>) -> Self
The status of the run for a condition.
sourcepub fn get_status(&self) -> &Option<ConditionExecutionStatus>
pub fn get_status(&self) -> &Option<ConditionExecutionStatus>
The status of the run for a condition.
sourcepub fn summary(self, input: impl Into<String>) -> Self
pub fn summary(self, input: impl Into<String>) -> Self
The summary of information about a run for a condition.
sourcepub fn set_summary(self, input: Option<String>) -> Self
pub fn set_summary(self, input: Option<String>) -> Self
The summary of information about a run for a condition.
sourcepub fn get_summary(&self) -> &Option<String>
pub fn get_summary(&self) -> &Option<String>
The summary of information about a run for a condition.
sourcepub fn last_status_change(self, input: DateTime) -> Self
pub fn last_status_change(self, input: DateTime) -> Self
The last status change of the condition.
sourcepub fn set_last_status_change(self, input: Option<DateTime>) -> Self
pub fn set_last_status_change(self, input: Option<DateTime>) -> Self
The last status change of the condition.
sourcepub fn get_last_status_change(&self) -> &Option<DateTime>
pub fn get_last_status_change(&self) -> &Option<DateTime>
The last status change of the condition.
sourcepub fn build(self) -> ConditionExecution
pub fn build(self) -> ConditionExecution
Consumes the builder and constructs a ConditionExecution
.
Trait Implementations§
source§impl Clone for ConditionExecutionBuilder
impl Clone for ConditionExecutionBuilder
source§fn clone(&self) -> ConditionExecutionBuilder
fn clone(&self) -> ConditionExecutionBuilder
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 ConditionExecutionBuilder
impl Debug for ConditionExecutionBuilder
source§impl Default for ConditionExecutionBuilder
impl Default for ConditionExecutionBuilder
source§fn default() -> ConditionExecutionBuilder
fn default() -> ConditionExecutionBuilder
Returns the “default value” for a type. Read more
impl StructuralPartialEq for ConditionExecutionBuilder
Auto Trait Implementations§
impl Freeze for ConditionExecutionBuilder
impl RefUnwindSafe for ConditionExecutionBuilder
impl Send for ConditionExecutionBuilder
impl Sync for ConditionExecutionBuilder
impl Unpin for ConditionExecutionBuilder
impl UnwindSafe for ConditionExecutionBuilder
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
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.