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

Function struct_value

crates/openshell-server/src/compute/mod.rs:2139–2150  ·  view source on GitHub ↗
(
        fields: impl IntoIterator<Item = (impl Into<String>, prost_types::Value)>,
    )

Source from the content-addressed store, hash-verified

2137 }
2138
2139 fn struct_value(
2140 fields: impl IntoIterator<Item = (impl Into<String>, prost_types::Value)>,
2141 ) -> prost_types::Value {
2142 prost_types::Value {
2143 kind: Some(prost_types::value::Kind::StructValue(prost_types::Struct {
2144 fields: fields
2145 .into_iter()
2146 .map(|(key, value)| (key.into(), value))
2147 .collect(),
2148 })),
2149 }
2150 }
2151
2152 #[test]
2153 fn driver_sandbox_spec_from_public_preserves_gpu_requirement() {

Calls

no outgoing calls