pub enum CheckResult {
Passed,
Warning,
Failed,
Broken,
Skipped,
}Expand description
Outcome of a single health check reported in a server’s status update.
Older reports may send a plain pass/fail flag instead of one of these
outcomes; when that happens a passing flag is treated as passed and a
failing flag as failed.
JSON schema
{
"description": "Outcome of a single health check reported in a server's status update.\n\nOlder reports may send a plain pass/fail flag instead of one of these\noutcomes; when that happens a passing flag is treated as `passed` and a\nfailing flag as `failed`.",
"type": "string",
"enum": [
"passed",
"warning",
"failed",
"broken",
"skipped"
]
}Variants§
Trait Implementations§
Source§impl Clone for CheckResult
impl Clone for CheckResult
Source§fn clone(&self) -> CheckResult
fn clone(&self) -> CheckResult
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 moreimpl Copy for CheckResult
Source§impl Debug for CheckResult
impl Debug for CheckResult
Source§impl<'de> Deserialize<'de> for CheckResult
impl<'de> Deserialize<'de> for CheckResult
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 Display for CheckResult
impl Display for CheckResult
impl Eq for CheckResult
Source§impl FromStr for CheckResult
impl FromStr for CheckResult
Source§impl Hash for CheckResult
impl Hash for CheckResult
Source§impl Ord for CheckResult
impl Ord for CheckResult
Source§fn cmp(&self, other: &CheckResult) -> Ordering
fn cmp(&self, other: &CheckResult) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for CheckResult
impl PartialEq for CheckResult
Source§impl PartialOrd for CheckResult
impl PartialOrd for CheckResult
Source§impl Serialize for CheckResult
impl Serialize for CheckResult
impl StructuralPartialEq for CheckResult
Source§impl TryFrom<&String> for CheckResult
impl TryFrom<&String> for CheckResult
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<&str> for CheckResult
impl TryFrom<&str> for CheckResult
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<String> for CheckResult
impl TryFrom<String> for CheckResult
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for CheckResult
impl RefUnwindSafe for CheckResult
impl Send for CheckResult
impl Sync for CheckResult
impl Unpin for CheckResult
impl UnsafeUnpin for CheckResult
impl UnwindSafe for CheckResult
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