pub enum CheckStatus {
Ok,
Warn,
Fail,
Unknown,
}Expand description
Four-state result mirroring the SPA’s color palette: ok = green,
warn = yellow, fail = red, unknown = grey. Wire-encoded as
snake_case ("ok" / "warn" / "fail" / "unknown") — the
PascalCase convention is reserved for super::error::ErrorKind
where SPEC §2.12.9 specifically pins it.
Variants§
Ok
Check passed.
Warn
Non-blocking finding. SPA renders yellow; user can ignore.
Fail
Failed — SPA renders red. If a troubleshoot manifest is
declared, the “修復する” button is enabled.
Unknown
Check couldn’t run (agent timed out, WMI hang, …). SPA
renders grey “Unknown” — operator should investigate via
system.log_tail.
Trait Implementations§
Source§impl Clone for CheckStatus
impl Clone for CheckStatus
Source§fn clone(&self) -> CheckStatus
fn clone(&self) -> CheckStatus
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 CheckStatus
impl Debug for CheckStatus
Source§impl<'de> Deserialize<'de> for CheckStatus
impl<'de> Deserialize<'de> for CheckStatus
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 Hash for CheckStatus
impl Hash for CheckStatus
Source§impl JsonSchema for CheckStatus
impl JsonSchema for CheckStatus
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for CheckStatus
impl PartialEq for CheckStatus
Source§fn eq(&self, other: &CheckStatus) -> bool
fn eq(&self, other: &CheckStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CheckStatus
impl Serialize for CheckStatus
impl Copy for CheckStatus
impl Eq for CheckStatus
impl StructuralPartialEq for CheckStatus
Auto Trait Implementations§
impl Freeze for CheckStatus
impl RefUnwindSafe for CheckStatus
impl Send for CheckStatus
impl Sync for CheckStatus
impl Unpin for CheckStatus
impl UnsafeUnpin for CheckStatus
impl UnwindSafe for CheckStatus
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