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

Method fmt

crates/openshell-prover/src/policy.rs:32–40  ·  view source on GitHub ↗
(&self, f: &mut std::fmt::Formatter<'_>)

Source from the content-addressed store, hash-verified

30
31impl std::fmt::Display for PolicyIntent {
32 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
33 match self {
34 Self::L4Only => write!(f, "l4_only"),
35 Self::ReadOnly => write!(f, "read_only"),
36 Self::ReadWrite => write!(f, "read_write"),
37 Self::Full => write!(f, "full"),
38 Self::Custom => write!(f, "custom"),
39 }
40 }
41}
42
43/// HTTP methods considered to be write operations.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected