pub struct TargetReportBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> TargetReportBuilder<S>
impl<S: State> TargetReportBuilder<S>
Sourcepub fn build(self) -> TargetReportwhere
S: IsComplete,
pub fn build(self) -> TargetReportwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn detail(
self,
value: Map<String, Value>,
) -> TargetReportBuilder<SetDetail<S>>where
S::Detail: IsUnset,
pub fn detail(
self,
value: Map<String, Value>,
) -> TargetReportBuilder<SetDetail<S>>where
S::Detail: IsUnset,
Required.
Everything the reporter has to say about this target beyond its checks. Recorded verbatim against the target it was attached to.
Sourcepub fn health(
self,
value: Vec<HealthCheck>,
) -> TargetReportBuilder<SetHealth<S>>where
S::Health: IsUnset,
pub fn health(
self,
value: Vec<HealthCheck>,
) -> TargetReportBuilder<SetHealth<S>>where
S::Health: IsUnset,
Sourcepub fn maybe_health(
self,
value: Option<Vec<HealthCheck>>,
) -> TargetReportBuilder<SetHealth<S>>where
S::Health: IsUnset,
pub fn maybe_health(
self,
value: Option<Vec<HealthCheck>>,
) -> TargetReportBuilder<SetHealth<S>>where
S::Health: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for TargetReportBuilder<S>
impl<S> RefUnwindSafe for TargetReportBuilder<S>
impl<S> Send for TargetReportBuilder<S>
impl<S> Sync for TargetReportBuilder<S>
impl<S> Unpin for TargetReportBuilder<S>
impl<S> UnsafeUnpin for TargetReportBuilder<S>
impl<S> UnwindSafe for TargetReportBuilder<S>
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