#[non_exhaustive]pub struct HealthCheck {
pub check: String,
pub healthy: Option<bool>,
pub result: Option<CheckResult>,
pub extra: Map<String, Value>,
}Expand description
One health-check result within a status push.
JSON schema
{
"description": "One health-check result within a status push.",
"type": "object",
"required": [
"check"
],
"properties": {
"check": {
"description": "Name of the check. Must be a non-empty string, and should stay stable\nacross pushes: results for the same name are correlated over time, so\nsuccessive failures and the eventual recovery land on the same issue.",
"type": "string"
},
"healthy": {
"description": "Legacy pass/fail form: `true` means `passed`, `false` means `failed`.\nMutually exclusive with `result`.",
"type": [
"boolean",
"null"
]
},
"result": {
"oneOf": [
{
"type": "null"
},
{
"description": "Outcome of the check: `passed`, `warning`, `failed`, `broken`, or\n`skipped`. Exactly one of `result` / `healthy` must be present per\nentry. `warning` and `failed` open the check's issue as graded by\nits policy; `broken` (the check itself errored, not the system under\ntest) neither confirms nor clears a known failure — the issue stays\nopen, retaining its contribution; `skipped` (a precondition was\nnot met) and `passed` open nothing and close prior issues.",
"$ref": "#/components/schemas/CheckResult"
}
]
}
},
"additionalProperties": true
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.check: StringName of the check. Must be a non-empty string, and should stay stable across pushes: results for the same name are correlated over time, so successive failures and the eventual recovery land on the same issue.
healthy: Option<bool>Legacy pass/fail form: true means passed, false means failed.
Mutually exclusive with result.
result: Option<CheckResult>§extra: Map<String, Value>Any further keys the schema accepts alongside those above, carried verbatim.
Implementations§
Source§impl HealthCheck
impl HealthCheck
Sourcepub fn builder() -> HealthCheckBuilder
pub fn builder() -> HealthCheckBuilder
Create an instance of HealthCheck using the builder syntax
Trait Implementations§
Source§impl Clone for HealthCheck
impl Clone for HealthCheck
Source§fn clone(&self) -> HealthCheck
fn clone(&self) -> HealthCheck
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 HealthCheck
impl Debug for HealthCheck
Source§impl<'de> Deserialize<'de> for HealthCheck
impl<'de> Deserialize<'de> for HealthCheck
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
Auto Trait Implementations§
impl Freeze for HealthCheck
impl RefUnwindSafe for HealthCheck
impl Send for HealthCheck
impl Sync for HealthCheck
impl Unpin for HealthCheck
impl UnsafeUnpin for HealthCheck
impl UnwindSafe for HealthCheck
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