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

Function rule_json

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

Source from the content-addressed store, hash-verified

1553}
1554
1555fn rule_json(method: &str, path: &str) -> serde_json::Value {
1556 serde_json::json!({
1557 "allow": {
1558 "method": method,
1559 "path": path
1560 }
1561 })
1562}
1563
1564fn jsonrpc_rule_json(method: &str) -> serde_json::Value {
1565 serde_json::json!({

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected