@@ -13,7 +13,7 @@ use std::fmt::{self, Formatter};
13
13
pub struct SyntheticsBatchResult {
14
14
/// The device ID.
15
15
#[ serde( rename = "device" ) ]
16
- pub device : Option < crate :: datadogV1 :: model :: SyntheticsDeviceID > ,
16
+ pub device : Option < String > ,
17
17
/// Total duration in millisecond of the test.
18
18
#[ serde( rename = "duration" ) ]
19
19
pub duration : Option < f64 > ,
@@ -66,7 +66,7 @@ impl SyntheticsBatchResult {
66
66
}
67
67
}
68
68
69
- pub fn device ( mut self , value : crate :: datadogV1 :: model :: SyntheticsDeviceID ) -> Self {
69
+ pub fn device ( mut self , value : String ) -> Self {
70
70
self . device = Some ( value) ;
71
71
self
72
72
}
@@ -151,7 +151,7 @@ impl<'de> Deserialize<'de> for SyntheticsBatchResult {
151
151
where
152
152
M : MapAccess < ' a > ,
153
153
{
154
- let mut device: Option < crate :: datadogV1 :: model :: SyntheticsDeviceID > = None ;
154
+ let mut device: Option < String > = None ;
155
155
let mut duration: Option < f64 > = None ;
156
156
let mut execution_rule: Option <
157
157
crate :: datadogV1:: model:: SyntheticsTestExecutionRule ,
@@ -177,16 +177,6 @@ impl<'de> Deserialize<'de> for SyntheticsBatchResult {
177
177
continue ;
178
178
}
179
179
device = Some ( serde_json:: from_value ( v) . map_err ( M :: Error :: custom) ?) ;
180
- if let Some ( ref _device) = device {
181
- match _device {
182
- crate :: datadogV1:: model:: SyntheticsDeviceID :: UnparsedObject (
183
- _device,
184
- ) => {
185
- _unparsed = true ;
186
- }
187
- _ => { }
188
- }
189
- }
190
180
}
191
181
"duration" => {
192
182
if v. is_null ( ) {
0 commit comments