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

Function json_struct

crates/openshell-driver-podman/src/driver.rs:1307–1312  ·  view source on GitHub ↗
(value: serde_json::Value)

Source from the content-addressed store, hash-verified

1305 }
1306
1307 fn json_struct(value: serde_json::Value) -> prost_types::Struct {
1308 match json_value(value).kind {
1309 Some(prost_types::value::Kind::StructValue(value)) => value,
1310 _ => panic!("expected JSON object"),
1311 }
1312 }
1313
1314 fn sandbox_with_volume_mount(volume: &str) -> DriverSandbox {
1315 DriverSandbox {

Callers 1

Calls 1

json_valueFunction · 0.70

Tested by

no test coverage detected