Struct bollard_stubs::models::HealthcheckResult
source · pub struct HealthcheckResult {
pub start: Option<BollardDate>,
pub end: Option<BollardDate>,
pub exit_code: Option<i64>,
pub output: Option<String>,
}
Expand description
HealthcheckResult stores information about a single run of a healthcheck probe
Fields§
§start: Option<BollardDate>
Date and time at which this check started in RFC 3339 format with nano-seconds.
end: Option<BollardDate>
Date and time at which this check ended in RFC 3339 format with nano-seconds.
exit_code: Option<i64>
ExitCode meanings: - 0
healthy - 1
unhealthy - 2
reserved (considered unhealthy) - other values: error running probe
output: Option<String>
Output from last check
Trait Implementations§
source§impl Clone for HealthcheckResult
impl Clone for HealthcheckResult
source§fn clone(&self) -> HealthcheckResult
fn clone(&self) -> HealthcheckResult
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 HealthcheckResult
impl Debug for HealthcheckResult
source§impl Default for HealthcheckResult
impl Default for HealthcheckResult
source§fn default() -> HealthcheckResult
fn default() -> HealthcheckResult
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for HealthcheckResult
impl<'de> Deserialize<'de> for HealthcheckResult
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<HealthcheckResult> for HealthcheckResult
impl PartialEq<HealthcheckResult> for HealthcheckResult
source§fn eq(&self, other: &HealthcheckResult) -> bool
fn eq(&self, other: &HealthcheckResult) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.