pub struct ApplicationReportBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> ApplicationReportBuilder<S>
impl<S: State> ApplicationReportBuilder<S>
Sourcepub fn build(self) -> ApplicationReportwhere
S: IsComplete,
pub fn build(self) -> ApplicationReportwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn detail(
self,
value: Map<String, Value>,
) -> ApplicationReportBuilder<SetDetail<S>>where
S::Detail: IsUnset,
pub fn detail(
self,
value: Map<String, Value>,
) -> ApplicationReportBuilder<SetDetail<S>>where
S::Detail: IsUnset,
Required.
Everything the reporter has to say about this application beyond its
checks, including its tamanuVersion.
Sourcepub fn health(
self,
value: Vec<HealthCheck>,
) -> ApplicationReportBuilder<SetHealth<S>>where
S::Health: IsUnset,
pub fn health(
self,
value: Vec<HealthCheck>,
) -> ApplicationReportBuilder<SetHealth<S>>where
S::Health: IsUnset,
Sourcepub fn maybe_health(
self,
value: Option<Vec<HealthCheck>>,
) -> ApplicationReportBuilder<SetHealth<S>>where
S::Health: IsUnset,
pub fn maybe_health(
self,
value: Option<Vec<HealthCheck>>,
) -> ApplicationReportBuilder<SetHealth<S>>where
S::Health: IsUnset,
Sourcepub fn type_(self, value: String) -> ApplicationReportBuilder<SetType<S>>where
S::Type: IsUnset,
pub fn type_(self, value: String) -> ApplicationReportBuilder<SetType<S>>where
S::Type: IsUnset,
Required.
What this application is: the software and the role it plays together,
for example tamanu-central. Required, and part of how Canopy
correlates the report to its own record — a different type under a key
already in use means the reporter has stopped reporting one application
and started reporting another.
Auto Trait Implementations§
impl<S> Freeze for ApplicationReportBuilder<S>
impl<S> RefUnwindSafe for ApplicationReportBuilder<S>
impl<S> Send for ApplicationReportBuilder<S>
impl<S> Sync for ApplicationReportBuilder<S>
impl<S> Unpin for ApplicationReportBuilder<S>
impl<S> UnsafeUnpin for ApplicationReportBuilder<S>
impl<S> UnwindSafe for ApplicationReportBuilder<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