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

Method from_str

crates/openshell-prover/src/registry.rs:76–82  ·  view source on GitHub ↗
(s: &str)

Source from the content-addressed store, hash-verified

74
75impl ActionType {
76 fn from_str(s: &str) -> Self {
77 match s {
78 "write" => Self::Write,
79 "destructive" => Self::Destructive,
80 _ => Self::Read,
81 }
82 }
83}
84
85/// A single action a binary protocol supports.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected