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

Function json_struct

crates/openshell-driver-docker/src/tests.rs:120–125  ·  view source on GitHub ↗
(value: serde_json::Value)

Source from the content-addressed store, hash-verified

118}
119
120fn json_struct(value: serde_json::Value) -> prost_types::Struct {
121 match json_value(value).kind {
122 Some(prost_types::value::Kind::StructValue(value)) => value,
123 _ => panic!("expected JSON object"),
124 }
125}
126
127fn json_value(value: serde_json::Value) -> prost_types::Value {
128 match value {

Calls 1

json_valueFunction · 0.70

Tested by

no test coverage detected