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

Function struct_to_json_value

crates/openshell-core/src/proto_struct.rs:22–24  ·  view source on GitHub ↗
(config: &prost_types::Struct)

Source from the content-addressed store, hash-verified

20/// Convert a protobuf Struct into a JSON value for typed serde decoding.
21#[must_use]
22pub fn struct_to_json_value(config: &prost_types::Struct) -> serde_json::Value {
23 serde_json::Value::Object(struct_to_json_object(config))
24}
25
26/// Convert a protobuf Value into a JSON value for typed serde decoding.
27#[must_use]

Callers 3

from_templateMethod · 0.85
from_templateMethod · 0.85
from_templateMethod · 0.85

Calls 1

struct_to_json_objectFunction · 0.85

Tested by

no test coverage detected