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

Function jsonrpc_rule_json

crates/openshell-supervisor-network/src/l7/mod.rs:1564–1570  ·  view source on GitHub ↗
(method: &str)

Source from the content-addressed store, hash-verified

1562}
1563
1564fn jsonrpc_rule_json(method: &str) -> serde_json::Value {
1565 serde_json::json!({
1566 "allow": {
1567 "method": method
1568 }
1569 })
1570}
1571
1572fn valid_methods_for_protocol(protocol: &str) -> &'static [&'static str] {
1573 match protocol {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected