MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / label

Method label

crates/openshell-ocsf/src/enums/security.rs:26–34  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

24impl SecurityLevelId {
25 #[must_use]
26 pub fn label(self) -> &'static str {
27 match self {
28 Self::Unknown => "Unknown",
29 Self::Secure => "Secure",
30 Self::AtRisk => "At Risk",
31 Self::Compromised => "Compromised",
32 Self::Other => "Other",
33 }
34 }
35
36 #[must_use]
37 pub fn as_u8(self) -> u8 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected