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

Function json_struct

crates/openshell-driver-kubernetes/src/driver.rs:2202–2207  ·  view source on GitHub ↗
(value: serde_json::Value)

Source from the content-addressed store, hash-verified

2200 std::sync::LazyLock::new(|| std::sync::Mutex::new(()));
2201
2202 fn json_struct(value: serde_json::Value) -> Struct {
2203 match json_value(value).kind {
2204 Some(Kind::StructValue(value)) => value,
2205 _ => panic!("expected JSON object"),
2206 }
2207 }
2208
2209 fn json_value(value: serde_json::Value) -> Value {
2210 match value {

Calls 1

json_valueFunction · 0.70