rustenium-cdp-definitions 0.1.1

Generated Chrome DevTools Protocol type definitions for Rustenium
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct AddScriptToEvaluateOnLoadResult {
    #[doc = "Identifier of the added script."]
    #[serde(rename = "identifier")]
    pub identifier: super::types::ScriptIdentifier,
}
impl TryFrom<serde_json::Value> for AddScriptToEvaluateOnLoadResult {
    type Error = serde_json::Error;
    fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
        serde_json::from_value(value)
    }
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct AddScriptToEvaluateOnNewDocumentResult {
    #[doc = "Identifier of the added script."]
    #[serde(rename = "identifier")]
    pub identifier: super::types::ScriptIdentifier,
}
impl TryFrom<serde_json::Value> for AddScriptToEvaluateOnNewDocumentResult {
    type Error = serde_json::Error;
    fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
        serde_json::from_value(value)
    }
}
#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
pub struct BringToFrontResult {}
impl TryFrom<serde_json::Value> for BringToFrontResult {
    type Error = serde_json::Error;
    fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
        serde_json::from_value(value)
    }
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct CaptureScreenshotResult {
    #[doc = "Base64-encoded image data."]
    #[serde(rename = "data")]
    pub data: crate::Binary,
}
impl TryFrom<serde_json::Value> for CaptureScreenshotResult {
    type Error = serde_json::Error;
    fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
        serde_json::from_value(value)
    }
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct CaptureSnapshotResult {
    #[doc = "Serialized page data."]
    #[serde(rename = "data")]
    pub data: String,
}
impl TryFrom<serde_json::Value> for CaptureSnapshotResult {
    type Error = serde_json::Error;
    fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
        serde_json::from_value(value)
    }
}
#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
pub struct ClearDeviceMetricsOverrideResult {}
impl TryFrom<serde_json::Value> for ClearDeviceMetricsOverrideResult {
    type Error = serde_json::Error;
    fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
        serde_json::from_value(value)
    }
}
#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
pub struct ClearDeviceOrientationOverrideResult {}
impl TryFrom<serde_json::Value> for ClearDeviceOrientationOverrideResult {
    type Error = serde_json::Error;
    fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
        serde_json::from_value(value)
    }
}
#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
pub struct ClearGeolocationOverrideResult {}
impl TryFrom<serde_json::Value> for ClearGeolocationOverrideResult {
    type Error = serde_json::Error;
    fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
        serde_json::from_value(value)
    }
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct CreateIsolatedWorldResult {
    #[doc = "Execution context of the isolated world."]
    #[serde(rename = "executionContextId")]
    pub execution_context_id: crate::js_protocol::runtime::types::ExecutionContextId,
}
impl TryFrom<serde_json::Value> for CreateIsolatedWorldResult {
    type Error = serde_json::Error;
    fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
        serde_json::from_value(value)
    }
}
#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
pub struct DeleteCookieResult {}
impl TryFrom<serde_json::Value> for DeleteCookieResult {
    type Error = serde_json::Error;
    fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
        serde_json::from_value(value)
    }
}
#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
pub struct DisableResult {}
impl TryFrom<serde_json::Value> for DisableResult {
    type Error = serde_json::Error;
    fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
        serde_json::from_value(value)
    }
}
#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
pub struct EnableResult {}
impl TryFrom<serde_json::Value> for EnableResult {
    type Error = serde_json::Error;
    fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
        serde_json::from_value(value)
    }
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct GetAppManifestResult {
    #[doc = "Manifest location."]
    #[serde(rename = "url")]
    pub url: String,
    #[serde(rename = "errors")]
    #[serde(skip_serializing_if = "Vec::is_empty")]
    pub errors: Vec<super::types::AppManifestError>,
    #[doc = "Manifest content."]
    #[serde(rename = "data")]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    pub data: Option<String>,
    #[serde(rename = "manifest")]
    pub manifest: super::types::WebAppManifest,
}
impl TryFrom<serde_json::Value> for GetAppManifestResult {
    type Error = serde_json::Error;
    fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
        serde_json::from_value(value)
    }
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct GetInstallabilityErrorsResult {
    #[serde(rename = "installabilityErrors")]
    #[serde(skip_serializing_if = "Vec::is_empty")]
    pub installability_errors: Vec<super::types::InstallabilityError>,
}
impl TryFrom<serde_json::Value> for GetInstallabilityErrorsResult {
    type Error = serde_json::Error;
    fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
        serde_json::from_value(value)
    }
}
#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
pub struct GetManifestIconsResult {
    #[serde(rename = "primaryIcon")]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    pub primary_icon: Option<crate::Binary>,
}
impl TryFrom<serde_json::Value> for GetManifestIconsResult {
    type Error = serde_json::Error;
    fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
        serde_json::from_value(value)
    }
}
#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
pub struct GetAppIdResult {
    #[doc = "App id, either from manifest's id attribute or computed from start_url"]
    #[serde(rename = "appId")]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    pub app_id: Option<String>,
    #[doc = "Recommendation for manifest's id attribute to match current id computed from start_url"]
    #[serde(rename = "recommendedId")]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    pub recommended_id: Option<String>,
}
impl TryFrom<serde_json::Value> for GetAppIdResult {
    type Error = serde_json::Error;
    fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
        serde_json::from_value(value)
    }
}
#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
pub struct GetAdScriptAncestryResult {
    #[doc = "The ancestry chain of ad script identifiers leading to this frame's\ncreation, along with the root script's filterlist rule. The ancestry\nchain is ordered from the most immediate script (in the frame creation\nstack) to more distant ancestors (that created the immediately preceding\nscript). Only sent if frame is labelled as an ad and ids are available."]
    #[serde(rename = "adScriptAncestry")]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    pub ad_script_ancestry: Option<super::types::AdScriptAncestry>,
}
impl TryFrom<serde_json::Value> for GetAdScriptAncestryResult {
    type Error = serde_json::Error;
    fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
        serde_json::from_value(value)
    }
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct GetFrameTreeResult {
    #[doc = "Present frame tree structure."]
    #[serde(rename = "frameTree")]
    pub frame_tree: super::types::FrameTree,
}
impl TryFrom<serde_json::Value> for GetFrameTreeResult {
    type Error = serde_json::Error;
    fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
        serde_json::from_value(value)
    }
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct GetLayoutMetricsResult {
    #[doc = "Metrics relating to the layout viewport in CSS pixels."]
    #[serde(rename = "cssLayoutViewport")]
    pub css_layout_viewport: super::types::LayoutViewport,
    #[doc = "Metrics relating to the visual viewport in CSS pixels."]
    #[serde(rename = "cssVisualViewport")]
    pub css_visual_viewport: super::types::VisualViewport,
    #[doc = "Size of scrollable area in CSS pixels."]
    #[serde(rename = "cssContentSize")]
    pub css_content_size: crate::browser_protocol::dom::types::Rect,
}
impl TryFrom<serde_json::Value> for GetLayoutMetricsResult {
    type Error = serde_json::Error;
    fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
        serde_json::from_value(value)
    }
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct GetNavigationHistoryResult {
    #[doc = "Index of the current navigation history entry."]
    #[serde(rename = "currentIndex")]
    pub current_index: i64,
    #[doc = "Array of navigation history entries."]
    #[serde(rename = "entries")]
    #[serde(skip_serializing_if = "Vec::is_empty")]
    pub entries: Vec<super::types::NavigationEntry>,
}
impl TryFrom<serde_json::Value> for GetNavigationHistoryResult {
    type Error = serde_json::Error;
    fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
        serde_json::from_value(value)
    }
}
#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
pub struct ResetNavigationHistoryResult {}
impl TryFrom<serde_json::Value> for ResetNavigationHistoryResult {
    type Error = serde_json::Error;
    fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
        serde_json::from_value(value)
    }
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct GetResourceContentResult {
    #[doc = "Resource content."]
    #[serde(rename = "content")]
    pub content: String,
    #[doc = "True, if content was served as base64."]
    #[serde(rename = "base64Encoded")]
    pub base64_encoded: bool,
}
impl TryFrom<serde_json::Value> for GetResourceContentResult {
    type Error = serde_json::Error;
    fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
        serde_json::from_value(value)
    }
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct GetResourceTreeResult {
    #[doc = "Present frame / resource tree structure."]
    #[serde(rename = "frameTree")]
    pub frame_tree: super::types::FrameResourceTree,
}
impl TryFrom<serde_json::Value> for GetResourceTreeResult {
    type Error = serde_json::Error;
    fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
        serde_json::from_value(value)
    }
}
#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
pub struct HandleJavaScriptDialogResult {}
impl TryFrom<serde_json::Value> for HandleJavaScriptDialogResult {
    type Error = serde_json::Error;
    fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
        serde_json::from_value(value)
    }
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct NavigateResult {
    #[doc = "Frame id that has navigated (or failed to navigate)"]
    #[serde(rename = "frameId")]
    pub frame_id: Box<super::types::FrameId>,
    #[doc = "Loader identifier. This is omitted in case of same-document navigation,\nas the previously committed loaderId would not change."]
    #[serde(rename = "loaderId")]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    pub loader_id: Option<crate::browser_protocol::network::types::LoaderId>,
    #[doc = "User friendly error message, present if and only if navigation has failed."]
    #[serde(rename = "errorText")]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    pub error_text: Option<String>,
    #[doc = "Whether the navigation resulted in a download."]
    #[serde(rename = "isDownload")]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    pub is_download: Option<bool>,
}
impl TryFrom<serde_json::Value> for NavigateResult {
    type Error = serde_json::Error;
    fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
        serde_json::from_value(value)
    }
}
#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
pub struct NavigateToHistoryEntryResult {}
impl TryFrom<serde_json::Value> for NavigateToHistoryEntryResult {
    type Error = serde_json::Error;
    fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
        serde_json::from_value(value)
    }
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct PrintToPdfResult {
    #[doc = "Base64-encoded pdf data. Empty if |returnAsStream| is specified."]
    #[serde(rename = "data")]
    pub data: crate::Binary,
    #[doc = "A handle of the stream that holds resulting PDF data."]
    #[serde(rename = "stream")]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    pub stream: Option<crate::browser_protocol::io::types::StreamHandle>,
}
impl TryFrom<serde_json::Value> for PrintToPdfResult {
    type Error = serde_json::Error;
    fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
        serde_json::from_value(value)
    }
}
#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
pub struct ReloadResult {}
impl TryFrom<serde_json::Value> for ReloadResult {
    type Error = serde_json::Error;
    fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
        serde_json::from_value(value)
    }
}
#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
pub struct RemoveScriptToEvaluateOnLoadResult {}
impl TryFrom<serde_json::Value> for RemoveScriptToEvaluateOnLoadResult {
    type Error = serde_json::Error;
    fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
        serde_json::from_value(value)
    }
}
#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
pub struct RemoveScriptToEvaluateOnNewDocumentResult {}
impl TryFrom<serde_json::Value> for RemoveScriptToEvaluateOnNewDocumentResult {
    type Error = serde_json::Error;
    fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
        serde_json::from_value(value)
    }
}
#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
pub struct ScreencastFrameAckResult {}
impl TryFrom<serde_json::Value> for ScreencastFrameAckResult {
    type Error = serde_json::Error;
    fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
        serde_json::from_value(value)
    }
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct SearchInResourceResult {
    #[doc = "List of search matches."]
    #[serde(rename = "result")]
    #[serde(skip_serializing_if = "Vec::is_empty")]
    pub result: Vec<crate::js_protocol::debugger::types::SearchMatch>,
}
impl TryFrom<serde_json::Value> for SearchInResourceResult {
    type Error = serde_json::Error;
    fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
        serde_json::from_value(value)
    }
}
#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
pub struct SetAdBlockingEnabledResult {}
impl TryFrom<serde_json::Value> for SetAdBlockingEnabledResult {
    type Error = serde_json::Error;
    fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
        serde_json::from_value(value)
    }
}
#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
pub struct SetBypassCspResult {}
impl TryFrom<serde_json::Value> for SetBypassCspResult {
    type Error = serde_json::Error;
    fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
        serde_json::from_value(value)
    }
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct GetPermissionsPolicyStateResult {
    #[serde(rename = "states")]
    #[serde(skip_serializing_if = "Vec::is_empty")]
    pub states: Vec<super::types::PermissionsPolicyFeatureState>,
}
impl TryFrom<serde_json::Value> for GetPermissionsPolicyStateResult {
    type Error = serde_json::Error;
    fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
        serde_json::from_value(value)
    }
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct GetOriginTrialsResult {
    #[serde(rename = "originTrials")]
    #[serde(skip_serializing_if = "Vec::is_empty")]
    pub origin_trials: Vec<super::types::OriginTrial>,
}
impl TryFrom<serde_json::Value> for GetOriginTrialsResult {
    type Error = serde_json::Error;
    fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
        serde_json::from_value(value)
    }
}
#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
pub struct SetDeviceMetricsOverrideResult {}
impl TryFrom<serde_json::Value> for SetDeviceMetricsOverrideResult {
    type Error = serde_json::Error;
    fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
        serde_json::from_value(value)
    }
}
#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
pub struct SetDeviceOrientationOverrideResult {}
impl TryFrom<serde_json::Value> for SetDeviceOrientationOverrideResult {
    type Error = serde_json::Error;
    fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
        serde_json::from_value(value)
    }
}
#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
pub struct SetFontFamiliesResult {}
impl TryFrom<serde_json::Value> for SetFontFamiliesResult {
    type Error = serde_json::Error;
    fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
        serde_json::from_value(value)
    }
}
#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
pub struct SetFontSizesResult {}
impl TryFrom<serde_json::Value> for SetFontSizesResult {
    type Error = serde_json::Error;
    fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
        serde_json::from_value(value)
    }
}
#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
pub struct SetDocumentContentResult {}
impl TryFrom<serde_json::Value> for SetDocumentContentResult {
    type Error = serde_json::Error;
    fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
        serde_json::from_value(value)
    }
}
#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
pub struct SetDownloadBehaviorResult {}
impl TryFrom<serde_json::Value> for SetDownloadBehaviorResult {
    type Error = serde_json::Error;
    fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
        serde_json::from_value(value)
    }
}
#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
pub struct SetGeolocationOverrideResult {}
impl TryFrom<serde_json::Value> for SetGeolocationOverrideResult {
    type Error = serde_json::Error;
    fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
        serde_json::from_value(value)
    }
}
#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
pub struct SetLifecycleEventsEnabledResult {}
impl TryFrom<serde_json::Value> for SetLifecycleEventsEnabledResult {
    type Error = serde_json::Error;
    fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
        serde_json::from_value(value)
    }
}
#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
pub struct SetTouchEmulationEnabledResult {}
impl TryFrom<serde_json::Value> for SetTouchEmulationEnabledResult {
    type Error = serde_json::Error;
    fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
        serde_json::from_value(value)
    }
}
#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
pub struct StartScreencastResult {}
impl TryFrom<serde_json::Value> for StartScreencastResult {
    type Error = serde_json::Error;
    fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
        serde_json::from_value(value)
    }
}
#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
pub struct StopLoadingResult {}
impl TryFrom<serde_json::Value> for StopLoadingResult {
    type Error = serde_json::Error;
    fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
        serde_json::from_value(value)
    }
}
#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
pub struct CrashResult {}
impl TryFrom<serde_json::Value> for CrashResult {
    type Error = serde_json::Error;
    fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
        serde_json::from_value(value)
    }
}
#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
pub struct CloseResult {}
impl TryFrom<serde_json::Value> for CloseResult {
    type Error = serde_json::Error;
    fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
        serde_json::from_value(value)
    }
}
#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
pub struct SetWebLifecycleStateResult {}
impl TryFrom<serde_json::Value> for SetWebLifecycleStateResult {
    type Error = serde_json::Error;
    fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
        serde_json::from_value(value)
    }
}
#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
pub struct StopScreencastResult {}
impl TryFrom<serde_json::Value> for StopScreencastResult {
    type Error = serde_json::Error;
    fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
        serde_json::from_value(value)
    }
}
#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
pub struct ProduceCompilationCacheResult {}
impl TryFrom<serde_json::Value> for ProduceCompilationCacheResult {
    type Error = serde_json::Error;
    fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
        serde_json::from_value(value)
    }
}
#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
pub struct AddCompilationCacheResult {}
impl TryFrom<serde_json::Value> for AddCompilationCacheResult {
    type Error = serde_json::Error;
    fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
        serde_json::from_value(value)
    }
}
#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
pub struct ClearCompilationCacheResult {}
impl TryFrom<serde_json::Value> for ClearCompilationCacheResult {
    type Error = serde_json::Error;
    fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
        serde_json::from_value(value)
    }
}
#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
pub struct SetSpcTransactionModeResult {}
impl TryFrom<serde_json::Value> for SetSpcTransactionModeResult {
    type Error = serde_json::Error;
    fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
        serde_json::from_value(value)
    }
}
#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
pub struct SetRphRegistrationModeResult {}
impl TryFrom<serde_json::Value> for SetRphRegistrationModeResult {
    type Error = serde_json::Error;
    fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
        serde_json::from_value(value)
    }
}
#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
pub struct GenerateTestReportResult {}
impl TryFrom<serde_json::Value> for GenerateTestReportResult {
    type Error = serde_json::Error;
    fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
        serde_json::from_value(value)
    }
}
#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
pub struct WaitForDebuggerResult {}
impl TryFrom<serde_json::Value> for WaitForDebuggerResult {
    type Error = serde_json::Error;
    fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
        serde_json::from_value(value)
    }
}
#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
pub struct SetInterceptFileChooserDialogResult {}
impl TryFrom<serde_json::Value> for SetInterceptFileChooserDialogResult {
    type Error = serde_json::Error;
    fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
        serde_json::from_value(value)
    }
}
#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
pub struct SetPrerenderingAllowedResult {}
impl TryFrom<serde_json::Value> for SetPrerenderingAllowedResult {
    type Error = serde_json::Error;
    fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
        serde_json::from_value(value)
    }
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct GetAnnotatedPageContentResult {
    #[doc = "The annotated page content as a base64 encoded protobuf.\nThe format is defined by the `AnnotatedPageContent` message in\ncomponents/optimization_guide/proto/features/common_quality_data.proto"]
    #[serde(rename = "content")]
    pub content: crate::Binary,
}
impl TryFrom<serde_json::Value> for GetAnnotatedPageContentResult {
    type Error = serde_json::Error;
    fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
        serde_json::from_value(value)
    }
}