pub struct HealthCheckResult {
pub status: HealthStatus,
pub message: Option<String>,
pub duration: Duration,
pub timestamp: Instant,
}Expand description
Health check result.
Fields§
§status: HealthStatusStatus.
message: Option<String>Message.
duration: DurationCheck duration.
timestamp: InstantTimestamp.
Implementations§
Source§impl HealthCheckResult
impl HealthCheckResult
Sourcepub const fn with_duration(self, duration: Duration) -> Self
pub const fn with_duration(self, duration: Duration) -> Self
Set duration.
Trait Implementations§
Source§impl Clone for HealthCheckResult
impl Clone for HealthCheckResult
Source§fn clone(&self) -> HealthCheckResult
fn clone(&self) -> HealthCheckResult
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for HealthCheckResult
impl RefUnwindSafe for HealthCheckResult
impl Send for HealthCheckResult
impl Sync for HealthCheckResult
impl Unpin for HealthCheckResult
impl UnwindSafe for HealthCheckResult
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