(field: &str, values: &[&str])
| 5168 | } |
| 5169 | |
| 5170 | fn list_string_driver_config(field: &str, values: &[&str]) -> Struct { |
| 5171 | Struct { |
| 5172 | fields: std::iter::once(( |
| 5173 | field.to_string(), |
| 5174 | Value { |
| 5175 | kind: Some(Kind::ListValue(prost_types::ListValue { |
| 5176 | values: values |
| 5177 | .iter() |
| 5178 | .map(|device_id| Value { |
| 5179 | kind: Some(Kind::StringValue((*device_id).to_string())), |
| 5180 | }) |
| 5181 | .collect(), |
| 5182 | })), |
| 5183 | }, |
| 5184 | )) |
| 5185 | .collect(), |
| 5186 | } |
| 5187 | } |
| 5188 | |
| 5189 | fn gpu_resources(count: Option<u32>) -> ResourceRequirements { |
| 5190 | ResourceRequirements { |
no outgoing calls
no test coverage detected