1use serde::{Deserialize, Serialize};
2#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
3pub struct CanEmulateResult {
4 #[doc = "True if emulation is supported."]
5 #[serde(rename = "result")]
6 pub result: bool,
7}
8impl TryFrom<serde_json::Value> for CanEmulateResult {
9 type Error = serde_json::Error;
10 fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
11 serde_json::from_value(value)
12 }
13}
14#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
15pub struct ClearDeviceMetricsOverrideResult {}
16impl TryFrom<serde_json::Value> for ClearDeviceMetricsOverrideResult {
17 type Error = serde_json::Error;
18 fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
19 serde_json::from_value(value)
20 }
21}
22#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
23pub struct ClearGeolocationOverrideResult {}
24impl TryFrom<serde_json::Value> for ClearGeolocationOverrideResult {
25 type Error = serde_json::Error;
26 fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
27 serde_json::from_value(value)
28 }
29}
30#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
31pub struct ResetPageScaleFactorResult {}
32impl TryFrom<serde_json::Value> for ResetPageScaleFactorResult {
33 type Error = serde_json::Error;
34 fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
35 serde_json::from_value(value)
36 }
37}
38#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
39pub struct SetFocusEmulationEnabledResult {}
40impl TryFrom<serde_json::Value> for SetFocusEmulationEnabledResult {
41 type Error = serde_json::Error;
42 fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
43 serde_json::from_value(value)
44 }
45}
46#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
47pub struct SetAutoDarkModeOverrideResult {}
48impl TryFrom<serde_json::Value> for SetAutoDarkModeOverrideResult {
49 type Error = serde_json::Error;
50 fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
51 serde_json::from_value(value)
52 }
53}
54#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
55pub struct SetCpuThrottlingRateResult {}
56impl TryFrom<serde_json::Value> for SetCpuThrottlingRateResult {
57 type Error = serde_json::Error;
58 fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
59 serde_json::from_value(value)
60 }
61}
62#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
63pub struct SetDefaultBackgroundColorOverrideResult {}
64impl TryFrom<serde_json::Value> for SetDefaultBackgroundColorOverrideResult {
65 type Error = serde_json::Error;
66 fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
67 serde_json::from_value(value)
68 }
69}
70#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
71pub struct SetSafeAreaInsetsOverrideResult {}
72impl TryFrom<serde_json::Value> for SetSafeAreaInsetsOverrideResult {
73 type Error = serde_json::Error;
74 fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
75 serde_json::from_value(value)
76 }
77}
78#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
79pub struct SetDeviceMetricsOverrideResult {}
80impl TryFrom<serde_json::Value> for SetDeviceMetricsOverrideResult {
81 type Error = serde_json::Error;
82 fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
83 serde_json::from_value(value)
84 }
85}
86#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
87pub struct SetDevicePostureOverrideResult {}
88impl TryFrom<serde_json::Value> for SetDevicePostureOverrideResult {
89 type Error = serde_json::Error;
90 fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
91 serde_json::from_value(value)
92 }
93}
94#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
95pub struct ClearDevicePostureOverrideResult {}
96impl TryFrom<serde_json::Value> for ClearDevicePostureOverrideResult {
97 type Error = serde_json::Error;
98 fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
99 serde_json::from_value(value)
100 }
101}
102#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
103pub struct SetDisplayFeaturesOverrideResult {}
104impl TryFrom<serde_json::Value> for SetDisplayFeaturesOverrideResult {
105 type Error = serde_json::Error;
106 fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
107 serde_json::from_value(value)
108 }
109}
110#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
111pub struct ClearDisplayFeaturesOverrideResult {}
112impl TryFrom<serde_json::Value> for ClearDisplayFeaturesOverrideResult {
113 type Error = serde_json::Error;
114 fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
115 serde_json::from_value(value)
116 }
117}
118#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
119pub struct SetScrollbarsHiddenResult {}
120impl TryFrom<serde_json::Value> for SetScrollbarsHiddenResult {
121 type Error = serde_json::Error;
122 fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
123 serde_json::from_value(value)
124 }
125}
126#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
127pub struct SetDocumentCookieDisabledResult {}
128impl TryFrom<serde_json::Value> for SetDocumentCookieDisabledResult {
129 type Error = serde_json::Error;
130 fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
131 serde_json::from_value(value)
132 }
133}
134#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
135pub struct SetEmitTouchEventsForMouseResult {}
136impl TryFrom<serde_json::Value> for SetEmitTouchEventsForMouseResult {
137 type Error = serde_json::Error;
138 fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
139 serde_json::from_value(value)
140 }
141}
142#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
143pub struct SetEmulatedMediaResult {}
144impl TryFrom<serde_json::Value> for SetEmulatedMediaResult {
145 type Error = serde_json::Error;
146 fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
147 serde_json::from_value(value)
148 }
149}
150#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
151pub struct SetEmulatedVisionDeficiencyResult {}
152impl TryFrom<serde_json::Value> for SetEmulatedVisionDeficiencyResult {
153 type Error = serde_json::Error;
154 fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
155 serde_json::from_value(value)
156 }
157}
158#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
159pub struct SetEmulatedOsTextScaleResult {}
160impl TryFrom<serde_json::Value> for SetEmulatedOsTextScaleResult {
161 type Error = serde_json::Error;
162 fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
163 serde_json::from_value(value)
164 }
165}
166#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
167pub struct SetGeolocationOverrideResult {}
168impl TryFrom<serde_json::Value> for SetGeolocationOverrideResult {
169 type Error = serde_json::Error;
170 fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
171 serde_json::from_value(value)
172 }
173}
174#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
175pub struct GetOverriddenSensorInformationResult {
176 #[serde(rename = "requestedSamplingFrequency")]
177 pub requested_sampling_frequency: f64,
178}
179impl TryFrom<serde_json::Value> for GetOverriddenSensorInformationResult {
180 type Error = serde_json::Error;
181 fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
182 serde_json::from_value(value)
183 }
184}
185#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
186pub struct SetSensorOverrideEnabledResult {}
187impl TryFrom<serde_json::Value> for SetSensorOverrideEnabledResult {
188 type Error = serde_json::Error;
189 fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
190 serde_json::from_value(value)
191 }
192}
193#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
194pub struct SetSensorOverrideReadingsResult {}
195impl TryFrom<serde_json::Value> for SetSensorOverrideReadingsResult {
196 type Error = serde_json::Error;
197 fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
198 serde_json::from_value(value)
199 }
200}
201#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
202pub struct SetPressureSourceOverrideEnabledResult {}
203impl TryFrom<serde_json::Value> for SetPressureSourceOverrideEnabledResult {
204 type Error = serde_json::Error;
205 fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
206 serde_json::from_value(value)
207 }
208}
209#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
210pub struct SetPressureStateOverrideResult {}
211impl TryFrom<serde_json::Value> for SetPressureStateOverrideResult {
212 type Error = serde_json::Error;
213 fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
214 serde_json::from_value(value)
215 }
216}
217#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
218pub struct SetPressureDataOverrideResult {}
219impl TryFrom<serde_json::Value> for SetPressureDataOverrideResult {
220 type Error = serde_json::Error;
221 fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
222 serde_json::from_value(value)
223 }
224}
225#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
226pub struct SetIdleOverrideResult {}
227impl TryFrom<serde_json::Value> for SetIdleOverrideResult {
228 type Error = serde_json::Error;
229 fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
230 serde_json::from_value(value)
231 }
232}
233#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
234pub struct ClearIdleOverrideResult {}
235impl TryFrom<serde_json::Value> for ClearIdleOverrideResult {
236 type Error = serde_json::Error;
237 fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
238 serde_json::from_value(value)
239 }
240}
241#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
242pub struct SetNavigatorOverridesResult {}
243impl TryFrom<serde_json::Value> for SetNavigatorOverridesResult {
244 type Error = serde_json::Error;
245 fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
246 serde_json::from_value(value)
247 }
248}
249#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
250pub struct SetPageScaleFactorResult {}
251impl TryFrom<serde_json::Value> for SetPageScaleFactorResult {
252 type Error = serde_json::Error;
253 fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
254 serde_json::from_value(value)
255 }
256}
257#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
258pub struct SetScriptExecutionDisabledResult {}
259impl TryFrom<serde_json::Value> for SetScriptExecutionDisabledResult {
260 type Error = serde_json::Error;
261 fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
262 serde_json::from_value(value)
263 }
264}
265#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
266pub struct SetTouchEmulationEnabledResult {}
267impl TryFrom<serde_json::Value> for SetTouchEmulationEnabledResult {
268 type Error = serde_json::Error;
269 fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
270 serde_json::from_value(value)
271 }
272}
273#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
274pub struct SetVirtualTimePolicyResult {
275 #[doc = "Absolute timestamp at which virtual time was first enabled (up time in milliseconds)."]
276 #[serde(rename = "virtualTimeTicksBase")]
277 pub virtual_time_ticks_base: f64,
278}
279impl TryFrom<serde_json::Value> for SetVirtualTimePolicyResult {
280 type Error = serde_json::Error;
281 fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
282 serde_json::from_value(value)
283 }
284}
285#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
286pub struct SetLocaleOverrideResult {}
287impl TryFrom<serde_json::Value> for SetLocaleOverrideResult {
288 type Error = serde_json::Error;
289 fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
290 serde_json::from_value(value)
291 }
292}
293#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
294pub struct SetTimezoneOverrideResult {}
295impl TryFrom<serde_json::Value> for SetTimezoneOverrideResult {
296 type Error = serde_json::Error;
297 fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
298 serde_json::from_value(value)
299 }
300}
301#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
302pub struct SetVisibleSizeResult {}
303impl TryFrom<serde_json::Value> for SetVisibleSizeResult {
304 type Error = serde_json::Error;
305 fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
306 serde_json::from_value(value)
307 }
308}
309#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
310pub struct SetDisabledImageTypesResult {}
311impl TryFrom<serde_json::Value> for SetDisabledImageTypesResult {
312 type Error = serde_json::Error;
313 fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
314 serde_json::from_value(value)
315 }
316}
317#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
318pub struct SetDataSaverOverrideResult {}
319impl TryFrom<serde_json::Value> for SetDataSaverOverrideResult {
320 type Error = serde_json::Error;
321 fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
322 serde_json::from_value(value)
323 }
324}
325#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
326pub struct SetHardwareConcurrencyOverrideResult {}
327impl TryFrom<serde_json::Value> for SetHardwareConcurrencyOverrideResult {
328 type Error = serde_json::Error;
329 fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
330 serde_json::from_value(value)
331 }
332}
333#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
334pub struct SetUserAgentOverrideResult {}
335impl TryFrom<serde_json::Value> for SetUserAgentOverrideResult {
336 type Error = serde_json::Error;
337 fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
338 serde_json::from_value(value)
339 }
340}
341#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
342pub struct SetAutomationOverrideResult {}
343impl TryFrom<serde_json::Value> for SetAutomationOverrideResult {
344 type Error = serde_json::Error;
345 fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
346 serde_json::from_value(value)
347 }
348}
349#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
350pub struct SetSmallViewportHeightDifferenceOverrideResult {}
351impl TryFrom<serde_json::Value> for SetSmallViewportHeightDifferenceOverrideResult {
352 type Error = serde_json::Error;
353 fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
354 serde_json::from_value(value)
355 }
356}
357#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
358pub struct GetScreenInfosResult {
359 #[serde(rename = "screenInfos")]
360 #[serde(skip_serializing_if = "Vec::is_empty")]
361 pub screen_infos: Vec<super::types::ScreenInfo>,
362}
363impl TryFrom<serde_json::Value> for GetScreenInfosResult {
364 type Error = serde_json::Error;
365 fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
366 serde_json::from_value(value)
367 }
368}
369#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
370pub struct AddScreenResult {
371 #[serde(rename = "screenInfo")]
372 pub screen_info: super::types::ScreenInfo,
373}
374impl TryFrom<serde_json::Value> for AddScreenResult {
375 type Error = serde_json::Error;
376 fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
377 serde_json::from_value(value)
378 }
379}
380#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
381pub struct RemoveScreenResult {}
382impl TryFrom<serde_json::Value> for RemoveScreenResult {
383 type Error = serde_json::Error;
384 fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
385 serde_json::from_value(value)
386 }
387}