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

Function json_struct

crates/openshell-driver-podman/src/container.rs:1130–1135  ·  view source on GitHub ↗
(value: Value)

Source from the content-addressed store, hash-verified

1128 std::sync::LazyLock::new(|| std::sync::Mutex::new(()));
1129
1130 fn json_struct(value: Value) -> prost_types::Struct {
1131 match json_value(value).kind {
1132 Some(prost_types::value::Kind::StructValue(value)) => value,
1133 _ => panic!("expected JSON object"),
1134 }
1135 }
1136
1137 fn json_value(value: Value) -> prost_types::Value {
1138 match value {

Calls 1

json_valueFunction · 0.70