(
fields: impl IntoIterator<Item = (impl Into<String>, prost_types::Value)>,
)
| 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() { |
no outgoing calls