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
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
use serde::{Deserialize, Serialize};
#[doc = "Disables domain notifications.\n[disable](https://chromedevtools.github.io/devtools-protocol/tot/Overlay/#method-disable)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct DisableParams {}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub enum DisableMethod {
    #[serde(rename = "Overlay.disable")]
    Disable,
}
#[doc = "Disables domain notifications.\n[disable](https://chromedevtools.github.io/devtools-protocol/tot/Overlay/#method-disable)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct Disable {
    pub method: DisableMethod,
    pub params: DisableParams,
}
impl Disable {
    pub const IDENTIFIER: &'static str = "Overlay.disable";
    pub fn identifier(&self) -> &'static str {
        Self::IDENTIFIER
    }
}
impl crate::CommandResult for Disable {
    type Result = super::results::DisableResult;
}
#[doc = "Enables domain notifications.\n[enable](https://chromedevtools.github.io/devtools-protocol/tot/Overlay/#method-enable)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct EnableParams {}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub enum EnableMethod {
    #[serde(rename = "Overlay.enable")]
    Enable,
}
#[doc = "Enables domain notifications.\n[enable](https://chromedevtools.github.io/devtools-protocol/tot/Overlay/#method-enable)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct Enable {
    pub method: EnableMethod,
    pub params: EnableParams,
}
impl Enable {
    pub const IDENTIFIER: &'static str = "Overlay.enable";
    pub fn identifier(&self) -> &'static str {
        Self::IDENTIFIER
    }
}
impl crate::CommandResult for Enable {
    type Result = super::results::EnableResult;
}
#[doc = "For testing.\n[getHighlightObjectForTest](https://chromedevtools.github.io/devtools-protocol/tot/Overlay/#method-getHighlightObjectForTest)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct GetHighlightObjectForTestParams {
    #[doc = "Id of the node to get highlight object for."]
    #[serde(rename = "nodeId")]
    pub node_id: crate::browser_protocol::dom::types::NodeId,
    #[doc = "Whether to include distance info."]
    #[serde(rename = "includeDistance")]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    pub include_distance: Option<bool>,
    #[doc = "Whether to include style info."]
    #[serde(rename = "includeStyle")]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    pub include_style: Option<bool>,
    #[doc = "The color format to get config with (default: hex)."]
    #[serde(rename = "colorFormat")]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    pub color_format: Option<super::types::ColorFormat>,
    #[doc = "Whether to show accessibility info (default: true)."]
    #[serde(rename = "showAccessibilityInfo")]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    pub show_accessibility_info: Option<bool>,
}
impl GetHighlightObjectForTestParams {
    pub fn new(node_id: impl Into<crate::browser_protocol::dom::types::NodeId>) -> Self {
        Self {
            node_id: node_id.into(),
            include_distance: None,
            include_style: None,
            color_format: None,
            show_accessibility_info: None,
        }
    }
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub enum GetHighlightObjectForTestMethod {
    #[serde(rename = "Overlay.getHighlightObjectForTest")]
    GetHighlightObjectForTest,
}
#[doc = "For testing.\n[getHighlightObjectForTest](https://chromedevtools.github.io/devtools-protocol/tot/Overlay/#method-getHighlightObjectForTest)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct GetHighlightObjectForTest {
    pub method: GetHighlightObjectForTestMethod,
    pub params: GetHighlightObjectForTestParams,
}
impl GetHighlightObjectForTest {
    pub const IDENTIFIER: &'static str = "Overlay.getHighlightObjectForTest";
    pub fn identifier(&self) -> &'static str {
        Self::IDENTIFIER
    }
}
impl crate::CommandResult for GetHighlightObjectForTest {
    type Result = super::results::GetHighlightObjectForTestResult;
}
#[doc = "For Persistent Grid testing.\n[getGridHighlightObjectsForTest](https://chromedevtools.github.io/devtools-protocol/tot/Overlay/#method-getGridHighlightObjectsForTest)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct GetGridHighlightObjectsForTestParams {
    #[doc = "Ids of the node to get highlight object for."]
    #[serde(rename = "nodeIds")]
    #[serde(skip_serializing_if = "Vec::is_empty")]
    pub node_ids: Vec<crate::browser_protocol::dom::types::NodeId>,
}
impl GetGridHighlightObjectsForTestParams {
    pub fn new(node_ids: Vec<crate::browser_protocol::dom::types::NodeId>) -> Self {
        Self { node_ids }
    }
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub enum GetGridHighlightObjectsForTestMethod {
    #[serde(rename = "Overlay.getGridHighlightObjectsForTest")]
    GetGridHighlightObjectsForTest,
}
#[doc = "For Persistent Grid testing.\n[getGridHighlightObjectsForTest](https://chromedevtools.github.io/devtools-protocol/tot/Overlay/#method-getGridHighlightObjectsForTest)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct GetGridHighlightObjectsForTest {
    pub method: GetGridHighlightObjectsForTestMethod,
    pub params: GetGridHighlightObjectsForTestParams,
}
impl GetGridHighlightObjectsForTest {
    pub const IDENTIFIER: &'static str = "Overlay.getGridHighlightObjectsForTest";
    pub fn identifier(&self) -> &'static str {
        Self::IDENTIFIER
    }
}
impl crate::CommandResult for GetGridHighlightObjectsForTest {
    type Result = super::results::GetGridHighlightObjectsForTestResult;
}
#[doc = "For Source Order Viewer testing.\n[getSourceOrderHighlightObjectForTest](https://chromedevtools.github.io/devtools-protocol/tot/Overlay/#method-getSourceOrderHighlightObjectForTest)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct GetSourceOrderHighlightObjectForTestParams {
    #[doc = "Id of the node to highlight."]
    #[serde(rename = "nodeId")]
    pub node_id: crate::browser_protocol::dom::types::NodeId,
}
impl GetSourceOrderHighlightObjectForTestParams {
    pub fn new(node_id: impl Into<crate::browser_protocol::dom::types::NodeId>) -> Self {
        Self {
            node_id: node_id.into(),
        }
    }
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub enum GetSourceOrderHighlightObjectForTestMethod {
    #[serde(rename = "Overlay.getSourceOrderHighlightObjectForTest")]
    GetSourceOrderHighlightObjectForTest,
}
#[doc = "For Source Order Viewer testing.\n[getSourceOrderHighlightObjectForTest](https://chromedevtools.github.io/devtools-protocol/tot/Overlay/#method-getSourceOrderHighlightObjectForTest)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct GetSourceOrderHighlightObjectForTest {
    pub method: GetSourceOrderHighlightObjectForTestMethod,
    pub params: GetSourceOrderHighlightObjectForTestParams,
}
impl GetSourceOrderHighlightObjectForTest {
    pub const IDENTIFIER: &'static str = "Overlay.getSourceOrderHighlightObjectForTest";
    pub fn identifier(&self) -> &'static str {
        Self::IDENTIFIER
    }
}
impl crate::CommandResult for GetSourceOrderHighlightObjectForTest {
    type Result = super::results::GetSourceOrderHighlightObjectForTestResult;
}
#[doc = "Hides any highlight.\n[hideHighlight](https://chromedevtools.github.io/devtools-protocol/tot/Overlay/#method-hideHighlight)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct HideHighlightParams {}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub enum HideHighlightMethod {
    #[serde(rename = "Overlay.hideHighlight")]
    HideHighlight,
}
#[doc = "Hides any highlight.\n[hideHighlight](https://chromedevtools.github.io/devtools-protocol/tot/Overlay/#method-hideHighlight)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct HideHighlight {
    pub method: HideHighlightMethod,
    pub params: HideHighlightParams,
}
impl HideHighlight {
    pub const IDENTIFIER: &'static str = "Overlay.hideHighlight";
    pub fn identifier(&self) -> &'static str {
        Self::IDENTIFIER
    }
}
impl crate::CommandResult for HideHighlight {
    type Result = super::results::HideHighlightResult;
}
#[doc = "Highlights DOM node with given id or with the given JavaScript object wrapper. Either nodeId or\nobjectId must be specified.\n[highlightNode](https://chromedevtools.github.io/devtools-protocol/tot/Overlay/#method-highlightNode)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct HighlightNodeParams {
    #[doc = "A descriptor for the highlight appearance."]
    #[serde(rename = "highlightConfig")]
    pub highlight_config: super::types::HighlightConfig,
    #[doc = "Identifier of the node to highlight."]
    #[serde(rename = "nodeId")]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    pub node_id: Option<crate::browser_protocol::dom::types::NodeId>,
    #[doc = "Identifier of the backend node to highlight."]
    #[serde(rename = "backendNodeId")]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    pub backend_node_id: Option<crate::browser_protocol::dom::types::BackendNodeId>,
    #[doc = "JavaScript object id of the node to be highlighted."]
    #[serde(rename = "objectId")]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    pub object_id: Option<crate::js_protocol::runtime::types::RemoteObjectId>,
    #[doc = "Selectors to highlight relevant nodes."]
    #[serde(rename = "selector")]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    pub selector: Option<String>,
}
impl HighlightNodeParams {
    pub fn new(highlight_config: impl Into<super::types::HighlightConfig>) -> Self {
        Self {
            highlight_config: highlight_config.into(),
            node_id: None,
            backend_node_id: None,
            object_id: None,
            selector: None,
        }
    }
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub enum HighlightNodeMethod {
    #[serde(rename = "Overlay.highlightNode")]
    HighlightNode,
}
#[doc = "Highlights DOM node with given id or with the given JavaScript object wrapper. Either nodeId or\nobjectId must be specified.\n[highlightNode](https://chromedevtools.github.io/devtools-protocol/tot/Overlay/#method-highlightNode)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct HighlightNode {
    pub method: HighlightNodeMethod,
    pub params: HighlightNodeParams,
}
impl HighlightNode {
    pub const IDENTIFIER: &'static str = "Overlay.highlightNode";
    pub fn identifier(&self) -> &'static str {
        Self::IDENTIFIER
    }
}
impl crate::CommandResult for HighlightNode {
    type Result = super::results::HighlightNodeResult;
}
#[doc = "Highlights given quad. Coordinates are absolute with respect to the main frame viewport.\n[highlightQuad](https://chromedevtools.github.io/devtools-protocol/tot/Overlay/#method-highlightQuad)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct HighlightQuadParams {
    #[doc = "Quad to highlight"]
    #[serde(rename = "quad")]
    pub quad: crate::browser_protocol::dom::types::Quad,
    #[doc = "The highlight fill color (default: transparent)."]
    #[serde(rename = "color")]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    pub color: Option<crate::browser_protocol::dom::types::Rgba>,
    #[doc = "The highlight outline color (default: transparent)."]
    #[serde(rename = "outlineColor")]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    pub outline_color: Option<crate::browser_protocol::dom::types::Rgba>,
}
impl HighlightQuadParams {
    pub fn new(quad: impl Into<crate::browser_protocol::dom::types::Quad>) -> Self {
        Self {
            quad: quad.into(),
            color: None,
            outline_color: None,
        }
    }
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub enum HighlightQuadMethod {
    #[serde(rename = "Overlay.highlightQuad")]
    HighlightQuad,
}
#[doc = "Highlights given quad. Coordinates are absolute with respect to the main frame viewport.\n[highlightQuad](https://chromedevtools.github.io/devtools-protocol/tot/Overlay/#method-highlightQuad)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct HighlightQuad {
    pub method: HighlightQuadMethod,
    pub params: HighlightQuadParams,
}
impl HighlightQuad {
    pub const IDENTIFIER: &'static str = "Overlay.highlightQuad";
    pub fn identifier(&self) -> &'static str {
        Self::IDENTIFIER
    }
}
impl crate::CommandResult for HighlightQuad {
    type Result = super::results::HighlightQuadResult;
}
#[doc = "Highlights given rectangle. Coordinates are absolute with respect to the main frame viewport.\nIssue: the method does not handle device pixel ratio (DPR) correctly.\nThe coordinates currently have to be adjusted by the client\nif DPR is not 1 (see crbug.com/437807128).\n[highlightRect](https://chromedevtools.github.io/devtools-protocol/tot/Overlay/#method-highlightRect)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct HighlightRectParams {
    #[doc = "X coordinate"]
    #[serde(rename = "x")]
    pub x: i64,
    #[doc = "Y coordinate"]
    #[serde(rename = "y")]
    pub y: i64,
    #[doc = "Rectangle width"]
    #[serde(rename = "width")]
    pub width: i64,
    #[doc = "Rectangle height"]
    #[serde(rename = "height")]
    pub height: i64,
    #[doc = "The highlight fill color (default: transparent)."]
    #[serde(rename = "color")]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    pub color: Option<crate::browser_protocol::dom::types::Rgba>,
    #[doc = "The highlight outline color (default: transparent)."]
    #[serde(rename = "outlineColor")]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    pub outline_color: Option<crate::browser_protocol::dom::types::Rgba>,
}
impl HighlightRectParams {
    pub fn new(
        x: impl Into<i64>,
        y: impl Into<i64>,
        width: impl Into<i64>,
        height: impl Into<i64>,
    ) -> Self {
        Self {
            x: x.into(),
            y: y.into(),
            width: width.into(),
            height: height.into(),
            color: None,
            outline_color: None,
        }
    }
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub enum HighlightRectMethod {
    #[serde(rename = "Overlay.highlightRect")]
    HighlightRect,
}
#[doc = "Highlights given rectangle. Coordinates are absolute with respect to the main frame viewport.\nIssue: the method does not handle device pixel ratio (DPR) correctly.\nThe coordinates currently have to be adjusted by the client\nif DPR is not 1 (see crbug.com/437807128).\n[highlightRect](https://chromedevtools.github.io/devtools-protocol/tot/Overlay/#method-highlightRect)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct HighlightRect {
    pub method: HighlightRectMethod,
    pub params: HighlightRectParams,
}
impl HighlightRect {
    pub const IDENTIFIER: &'static str = "Overlay.highlightRect";
    pub fn identifier(&self) -> &'static str {
        Self::IDENTIFIER
    }
}
impl crate::CommandResult for HighlightRect {
    type Result = super::results::HighlightRectResult;
}
#[doc = "Highlights the source order of the children of the DOM node with given id or with the given\nJavaScript object wrapper. Either nodeId or objectId must be specified.\n[highlightSourceOrder](https://chromedevtools.github.io/devtools-protocol/tot/Overlay/#method-highlightSourceOrder)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct HighlightSourceOrderParams {
    #[doc = "A descriptor for the appearance of the overlay drawing."]
    #[serde(rename = "sourceOrderConfig")]
    pub source_order_config: super::types::SourceOrderConfig,
    #[doc = "Identifier of the node to highlight."]
    #[serde(rename = "nodeId")]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    pub node_id: Option<crate::browser_protocol::dom::types::NodeId>,
    #[doc = "Identifier of the backend node to highlight."]
    #[serde(rename = "backendNodeId")]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    pub backend_node_id: Option<crate::browser_protocol::dom::types::BackendNodeId>,
    #[doc = "JavaScript object id of the node to be highlighted."]
    #[serde(rename = "objectId")]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    pub object_id: Option<crate::js_protocol::runtime::types::RemoteObjectId>,
}
impl HighlightSourceOrderParams {
    pub fn new(source_order_config: impl Into<super::types::SourceOrderConfig>) -> Self {
        Self {
            source_order_config: source_order_config.into(),
            node_id: None,
            backend_node_id: None,
            object_id: None,
        }
    }
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub enum HighlightSourceOrderMethod {
    #[serde(rename = "Overlay.highlightSourceOrder")]
    HighlightSourceOrder,
}
#[doc = "Highlights the source order of the children of the DOM node with given id or with the given\nJavaScript object wrapper. Either nodeId or objectId must be specified.\n[highlightSourceOrder](https://chromedevtools.github.io/devtools-protocol/tot/Overlay/#method-highlightSourceOrder)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct HighlightSourceOrder {
    pub method: HighlightSourceOrderMethod,
    pub params: HighlightSourceOrderParams,
}
impl HighlightSourceOrder {
    pub const IDENTIFIER: &'static str = "Overlay.highlightSourceOrder";
    pub fn identifier(&self) -> &'static str {
        Self::IDENTIFIER
    }
}
impl crate::CommandResult for HighlightSourceOrder {
    type Result = super::results::HighlightSourceOrderResult;
}
#[doc = "Enters the 'inspect' mode. In this mode, elements that user is hovering over are highlighted.\nBackend then generates 'inspectNodeRequested' event upon element selection.\n[setInspectMode](https://chromedevtools.github.io/devtools-protocol/tot/Overlay/#method-setInspectMode)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct SetInspectModeParams {
    #[doc = "Set an inspection mode."]
    #[serde(rename = "mode")]
    pub mode: super::types::InspectMode,
    #[doc = "A descriptor for the highlight appearance of hovered-over nodes. May be omitted if `enabled\n== false`."]
    #[serde(rename = "highlightConfig")]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    pub highlight_config: Option<super::types::HighlightConfig>,
}
impl SetInspectModeParams {
    pub fn new(mode: impl Into<super::types::InspectMode>) -> Self {
        Self {
            mode: mode.into(),
            highlight_config: None,
        }
    }
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub enum SetInspectModeMethod {
    #[serde(rename = "Overlay.setInspectMode")]
    SetInspectMode,
}
#[doc = "Enters the 'inspect' mode. In this mode, elements that user is hovering over are highlighted.\nBackend then generates 'inspectNodeRequested' event upon element selection.\n[setInspectMode](https://chromedevtools.github.io/devtools-protocol/tot/Overlay/#method-setInspectMode)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct SetInspectMode {
    pub method: SetInspectModeMethod,
    pub params: SetInspectModeParams,
}
impl SetInspectMode {
    pub const IDENTIFIER: &'static str = "Overlay.setInspectMode";
    pub fn identifier(&self) -> &'static str {
        Self::IDENTIFIER
    }
}
impl crate::CommandResult for SetInspectMode {
    type Result = super::results::SetInspectModeResult;
}
#[doc = "Highlights owner element of all frames detected to be ads.\n[setShowAdHighlights](https://chromedevtools.github.io/devtools-protocol/tot/Overlay/#method-setShowAdHighlights)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct SetShowAdHighlightsParams {
    #[doc = "True for showing ad highlights"]
    #[serde(rename = "show")]
    pub show: bool,
}
impl SetShowAdHighlightsParams {
    pub fn new(show: impl Into<bool>) -> Self {
        Self { show: show.into() }
    }
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub enum SetShowAdHighlightsMethod {
    #[serde(rename = "Overlay.setShowAdHighlights")]
    SetShowAdHighlights,
}
#[doc = "Highlights owner element of all frames detected to be ads.\n[setShowAdHighlights](https://chromedevtools.github.io/devtools-protocol/tot/Overlay/#method-setShowAdHighlights)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct SetShowAdHighlights {
    pub method: SetShowAdHighlightsMethod,
    pub params: SetShowAdHighlightsParams,
}
impl SetShowAdHighlights {
    pub const IDENTIFIER: &'static str = "Overlay.setShowAdHighlights";
    pub fn identifier(&self) -> &'static str {
        Self::IDENTIFIER
    }
}
impl crate::CommandResult for SetShowAdHighlights {
    type Result = super::results::SetShowAdHighlightsResult;
}
#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
pub struct SetPausedInDebuggerMessageParams {
    #[doc = "The message to display, also triggers resume and step over controls."]
    #[serde(rename = "message")]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    pub message: Option<String>,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub enum SetPausedInDebuggerMessageMethod {
    #[serde(rename = "Overlay.setPausedInDebuggerMessage")]
    SetPausedInDebuggerMessage,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct SetPausedInDebuggerMessage {
    pub method: SetPausedInDebuggerMessageMethod,
    pub params: SetPausedInDebuggerMessageParams,
}
impl SetPausedInDebuggerMessage {
    pub const IDENTIFIER: &'static str = "Overlay.setPausedInDebuggerMessage";
    pub fn identifier(&self) -> &'static str {
        Self::IDENTIFIER
    }
}
impl crate::CommandResult for SetPausedInDebuggerMessage {
    type Result = super::results::SetPausedInDebuggerMessageResult;
}
#[doc = "Requests that backend shows debug borders on layers\n[setShowDebugBorders](https://chromedevtools.github.io/devtools-protocol/tot/Overlay/#method-setShowDebugBorders)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct SetShowDebugBordersParams {
    #[doc = "True for showing debug borders"]
    #[serde(rename = "show")]
    pub show: bool,
}
impl SetShowDebugBordersParams {
    pub fn new(show: impl Into<bool>) -> Self {
        Self { show: show.into() }
    }
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub enum SetShowDebugBordersMethod {
    #[serde(rename = "Overlay.setShowDebugBorders")]
    SetShowDebugBorders,
}
#[doc = "Requests that backend shows debug borders on layers\n[setShowDebugBorders](https://chromedevtools.github.io/devtools-protocol/tot/Overlay/#method-setShowDebugBorders)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct SetShowDebugBorders {
    pub method: SetShowDebugBordersMethod,
    pub params: SetShowDebugBordersParams,
}
impl SetShowDebugBorders {
    pub const IDENTIFIER: &'static str = "Overlay.setShowDebugBorders";
    pub fn identifier(&self) -> &'static str {
        Self::IDENTIFIER
    }
}
impl crate::CommandResult for SetShowDebugBorders {
    type Result = super::results::SetShowDebugBordersResult;
}
#[doc = "Requests that backend shows the FPS counter\n[setShowFPSCounter](https://chromedevtools.github.io/devtools-protocol/tot/Overlay/#method-setShowFPSCounter)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct SetShowFpsCounterParams {
    #[doc = "True for showing the FPS counter"]
    #[serde(rename = "show")]
    pub show: bool,
}
impl SetShowFpsCounterParams {
    pub fn new(show: impl Into<bool>) -> Self {
        Self { show: show.into() }
    }
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub enum SetShowFpsCounterMethod {
    #[serde(rename = "Overlay.setShowFPSCounter")]
    SetShowFpsCounter,
}
#[doc = "Requests that backend shows the FPS counter\n[setShowFPSCounter](https://chromedevtools.github.io/devtools-protocol/tot/Overlay/#method-setShowFPSCounter)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct SetShowFpsCounter {
    pub method: SetShowFpsCounterMethod,
    pub params: SetShowFpsCounterParams,
}
impl SetShowFpsCounter {
    pub const IDENTIFIER: &'static str = "Overlay.setShowFPSCounter";
    pub fn identifier(&self) -> &'static str {
        Self::IDENTIFIER
    }
}
impl crate::CommandResult for SetShowFpsCounter {
    type Result = super::results::SetShowFpsCounterResult;
}
#[doc = "Highlight multiple elements with the CSS Grid overlay.\n[setShowGridOverlays](https://chromedevtools.github.io/devtools-protocol/tot/Overlay/#method-setShowGridOverlays)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct SetShowGridOverlaysParams {
    #[doc = "An array of node identifiers and descriptors for the highlight appearance."]
    #[serde(rename = "gridNodeHighlightConfigs")]
    #[serde(skip_serializing_if = "Vec::is_empty")]
    pub grid_node_highlight_configs: Vec<super::types::GridNodeHighlightConfig>,
}
impl SetShowGridOverlaysParams {
    pub fn new(grid_node_highlight_configs: Vec<super::types::GridNodeHighlightConfig>) -> Self {
        Self {
            grid_node_highlight_configs,
        }
    }
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub enum SetShowGridOverlaysMethod {
    #[serde(rename = "Overlay.setShowGridOverlays")]
    SetShowGridOverlays,
}
#[doc = "Highlight multiple elements with the CSS Grid overlay.\n[setShowGridOverlays](https://chromedevtools.github.io/devtools-protocol/tot/Overlay/#method-setShowGridOverlays)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct SetShowGridOverlays {
    pub method: SetShowGridOverlaysMethod,
    pub params: SetShowGridOverlaysParams,
}
impl SetShowGridOverlays {
    pub const IDENTIFIER: &'static str = "Overlay.setShowGridOverlays";
    pub fn identifier(&self) -> &'static str {
        Self::IDENTIFIER
    }
}
impl crate::CommandResult for SetShowGridOverlays {
    type Result = super::results::SetShowGridOverlaysResult;
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct SetShowFlexOverlaysParams {
    #[doc = "An array of node identifiers and descriptors for the highlight appearance."]
    #[serde(rename = "flexNodeHighlightConfigs")]
    #[serde(skip_serializing_if = "Vec::is_empty")]
    pub flex_node_highlight_configs: Vec<super::types::FlexNodeHighlightConfig>,
}
impl SetShowFlexOverlaysParams {
    pub fn new(flex_node_highlight_configs: Vec<super::types::FlexNodeHighlightConfig>) -> Self {
        Self {
            flex_node_highlight_configs,
        }
    }
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub enum SetShowFlexOverlaysMethod {
    #[serde(rename = "Overlay.setShowFlexOverlays")]
    SetShowFlexOverlays,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct SetShowFlexOverlays {
    pub method: SetShowFlexOverlaysMethod,
    pub params: SetShowFlexOverlaysParams,
}
impl SetShowFlexOverlays {
    pub const IDENTIFIER: &'static str = "Overlay.setShowFlexOverlays";
    pub fn identifier(&self) -> &'static str {
        Self::IDENTIFIER
    }
}
impl crate::CommandResult for SetShowFlexOverlays {
    type Result = super::results::SetShowFlexOverlaysResult;
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct SetShowScrollSnapOverlaysParams {
    #[doc = "An array of node identifiers and descriptors for the highlight appearance."]
    #[serde(rename = "scrollSnapHighlightConfigs")]
    #[serde(skip_serializing_if = "Vec::is_empty")]
    pub scroll_snap_highlight_configs: Vec<super::types::ScrollSnapHighlightConfig>,
}
impl SetShowScrollSnapOverlaysParams {
    pub fn new(
        scroll_snap_highlight_configs: Vec<super::types::ScrollSnapHighlightConfig>,
    ) -> Self {
        Self {
            scroll_snap_highlight_configs,
        }
    }
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub enum SetShowScrollSnapOverlaysMethod {
    #[serde(rename = "Overlay.setShowScrollSnapOverlays")]
    SetShowScrollSnapOverlays,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct SetShowScrollSnapOverlays {
    pub method: SetShowScrollSnapOverlaysMethod,
    pub params: SetShowScrollSnapOverlaysParams,
}
impl SetShowScrollSnapOverlays {
    pub const IDENTIFIER: &'static str = "Overlay.setShowScrollSnapOverlays";
    pub fn identifier(&self) -> &'static str {
        Self::IDENTIFIER
    }
}
impl crate::CommandResult for SetShowScrollSnapOverlays {
    type Result = super::results::SetShowScrollSnapOverlaysResult;
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct SetShowContainerQueryOverlaysParams {
    #[doc = "An array of node identifiers and descriptors for the highlight appearance."]
    #[serde(rename = "containerQueryHighlightConfigs")]
    #[serde(skip_serializing_if = "Vec::is_empty")]
    pub container_query_highlight_configs: Vec<super::types::ContainerQueryHighlightConfig>,
}
impl SetShowContainerQueryOverlaysParams {
    pub fn new(
        container_query_highlight_configs: Vec<super::types::ContainerQueryHighlightConfig>,
    ) -> Self {
        Self {
            container_query_highlight_configs,
        }
    }
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub enum SetShowContainerQueryOverlaysMethod {
    #[serde(rename = "Overlay.setShowContainerQueryOverlays")]
    SetShowContainerQueryOverlays,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct SetShowContainerQueryOverlays {
    pub method: SetShowContainerQueryOverlaysMethod,
    pub params: SetShowContainerQueryOverlaysParams,
}
impl SetShowContainerQueryOverlays {
    pub const IDENTIFIER: &'static str = "Overlay.setShowContainerQueryOverlays";
    pub fn identifier(&self) -> &'static str {
        Self::IDENTIFIER
    }
}
impl crate::CommandResult for SetShowContainerQueryOverlays {
    type Result = super::results::SetShowContainerQueryOverlaysResult;
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct SetShowInspectedElementAnchorParams {
    #[doc = "Node identifier for which to show an anchor for."]
    #[serde(rename = "inspectedElementAnchorConfig")]
    pub inspected_element_anchor_config: super::types::InspectedElementAnchorConfig,
}
impl SetShowInspectedElementAnchorParams {
    pub fn new(
        inspected_element_anchor_config: impl Into<super::types::InspectedElementAnchorConfig>,
    ) -> Self {
        Self {
            inspected_element_anchor_config: inspected_element_anchor_config.into(),
        }
    }
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub enum SetShowInspectedElementAnchorMethod {
    #[serde(rename = "Overlay.setShowInspectedElementAnchor")]
    SetShowInspectedElementAnchor,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct SetShowInspectedElementAnchor {
    pub method: SetShowInspectedElementAnchorMethod,
    pub params: SetShowInspectedElementAnchorParams,
}
impl SetShowInspectedElementAnchor {
    pub const IDENTIFIER: &'static str = "Overlay.setShowInspectedElementAnchor";
    pub fn identifier(&self) -> &'static str {
        Self::IDENTIFIER
    }
}
impl crate::CommandResult for SetShowInspectedElementAnchor {
    type Result = super::results::SetShowInspectedElementAnchorResult;
}
#[doc = "Requests that backend shows paint rectangles\n[setShowPaintRects](https://chromedevtools.github.io/devtools-protocol/tot/Overlay/#method-setShowPaintRects)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct SetShowPaintRectsParams {
    #[doc = "True for showing paint rectangles"]
    #[serde(rename = "result")]
    pub result: bool,
}
impl SetShowPaintRectsParams {
    pub fn new(result: impl Into<bool>) -> Self {
        Self {
            result: result.into(),
        }
    }
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub enum SetShowPaintRectsMethod {
    #[serde(rename = "Overlay.setShowPaintRects")]
    SetShowPaintRects,
}
#[doc = "Requests that backend shows paint rectangles\n[setShowPaintRects](https://chromedevtools.github.io/devtools-protocol/tot/Overlay/#method-setShowPaintRects)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct SetShowPaintRects {
    pub method: SetShowPaintRectsMethod,
    pub params: SetShowPaintRectsParams,
}
impl SetShowPaintRects {
    pub const IDENTIFIER: &'static str = "Overlay.setShowPaintRects";
    pub fn identifier(&self) -> &'static str {
        Self::IDENTIFIER
    }
}
impl crate::CommandResult for SetShowPaintRects {
    type Result = super::results::SetShowPaintRectsResult;
}
#[doc = "Requests that backend shows layout shift regions\n[setShowLayoutShiftRegions](https://chromedevtools.github.io/devtools-protocol/tot/Overlay/#method-setShowLayoutShiftRegions)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct SetShowLayoutShiftRegionsParams {
    #[doc = "True for showing layout shift regions"]
    #[serde(rename = "result")]
    pub result: bool,
}
impl SetShowLayoutShiftRegionsParams {
    pub fn new(result: impl Into<bool>) -> Self {
        Self {
            result: result.into(),
        }
    }
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub enum SetShowLayoutShiftRegionsMethod {
    #[serde(rename = "Overlay.setShowLayoutShiftRegions")]
    SetShowLayoutShiftRegions,
}
#[doc = "Requests that backend shows layout shift regions\n[setShowLayoutShiftRegions](https://chromedevtools.github.io/devtools-protocol/tot/Overlay/#method-setShowLayoutShiftRegions)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct SetShowLayoutShiftRegions {
    pub method: SetShowLayoutShiftRegionsMethod,
    pub params: SetShowLayoutShiftRegionsParams,
}
impl SetShowLayoutShiftRegions {
    pub const IDENTIFIER: &'static str = "Overlay.setShowLayoutShiftRegions";
    pub fn identifier(&self) -> &'static str {
        Self::IDENTIFIER
    }
}
impl crate::CommandResult for SetShowLayoutShiftRegions {
    type Result = super::results::SetShowLayoutShiftRegionsResult;
}
#[doc = "Requests that backend shows scroll bottleneck rects\n[setShowScrollBottleneckRects](https://chromedevtools.github.io/devtools-protocol/tot/Overlay/#method-setShowScrollBottleneckRects)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct SetShowScrollBottleneckRectsParams {
    #[doc = "True for showing scroll bottleneck rects"]
    #[serde(rename = "show")]
    pub show: bool,
}
impl SetShowScrollBottleneckRectsParams {
    pub fn new(show: impl Into<bool>) -> Self {
        Self { show: show.into() }
    }
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub enum SetShowScrollBottleneckRectsMethod {
    #[serde(rename = "Overlay.setShowScrollBottleneckRects")]
    SetShowScrollBottleneckRects,
}
#[doc = "Requests that backend shows scroll bottleneck rects\n[setShowScrollBottleneckRects](https://chromedevtools.github.io/devtools-protocol/tot/Overlay/#method-setShowScrollBottleneckRects)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct SetShowScrollBottleneckRects {
    pub method: SetShowScrollBottleneckRectsMethod,
    pub params: SetShowScrollBottleneckRectsParams,
}
impl SetShowScrollBottleneckRects {
    pub const IDENTIFIER: &'static str = "Overlay.setShowScrollBottleneckRects";
    pub fn identifier(&self) -> &'static str {
        Self::IDENTIFIER
    }
}
impl crate::CommandResult for SetShowScrollBottleneckRects {
    type Result = super::results::SetShowScrollBottleneckRectsResult;
}
#[doc = "Paints viewport size upon main frame resize.\n[setShowViewportSizeOnResize](https://chromedevtools.github.io/devtools-protocol/tot/Overlay/#method-setShowViewportSizeOnResize)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct SetShowViewportSizeOnResizeParams {
    #[doc = "Whether to paint size or not."]
    #[serde(rename = "show")]
    pub show: bool,
}
impl SetShowViewportSizeOnResizeParams {
    pub fn new(show: impl Into<bool>) -> Self {
        Self { show: show.into() }
    }
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub enum SetShowViewportSizeOnResizeMethod {
    #[serde(rename = "Overlay.setShowViewportSizeOnResize")]
    SetShowViewportSizeOnResize,
}
#[doc = "Paints viewport size upon main frame resize.\n[setShowViewportSizeOnResize](https://chromedevtools.github.io/devtools-protocol/tot/Overlay/#method-setShowViewportSizeOnResize)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct SetShowViewportSizeOnResize {
    pub method: SetShowViewportSizeOnResizeMethod,
    pub params: SetShowViewportSizeOnResizeParams,
}
impl SetShowViewportSizeOnResize {
    pub const IDENTIFIER: &'static str = "Overlay.setShowViewportSizeOnResize";
    pub fn identifier(&self) -> &'static str {
        Self::IDENTIFIER
    }
}
impl crate::CommandResult for SetShowViewportSizeOnResize {
    type Result = super::results::SetShowViewportSizeOnResizeResult;
}
#[doc = "Add a dual screen device hinge\n[setShowHinge](https://chromedevtools.github.io/devtools-protocol/tot/Overlay/#method-setShowHinge)"]
#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
pub struct SetShowHingeParams {
    #[doc = "hinge data, null means hideHinge"]
    #[serde(rename = "hingeConfig")]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    pub hinge_config: Option<super::types::HingeConfig>,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub enum SetShowHingeMethod {
    #[serde(rename = "Overlay.setShowHinge")]
    SetShowHinge,
}
#[doc = "Add a dual screen device hinge\n[setShowHinge](https://chromedevtools.github.io/devtools-protocol/tot/Overlay/#method-setShowHinge)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct SetShowHinge {
    pub method: SetShowHingeMethod,
    pub params: SetShowHingeParams,
}
impl SetShowHinge {
    pub const IDENTIFIER: &'static str = "Overlay.setShowHinge";
    pub fn identifier(&self) -> &'static str {
        Self::IDENTIFIER
    }
}
impl crate::CommandResult for SetShowHinge {
    type Result = super::results::SetShowHingeResult;
}
#[doc = "Show elements in isolation mode with overlays.\n[setShowIsolatedElements](https://chromedevtools.github.io/devtools-protocol/tot/Overlay/#method-setShowIsolatedElements)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct SetShowIsolatedElementsParams {
    #[doc = "An array of node identifiers and descriptors for the highlight appearance."]
    #[serde(rename = "isolatedElementHighlightConfigs")]
    #[serde(skip_serializing_if = "Vec::is_empty")]
    pub isolated_element_highlight_configs: Vec<super::types::IsolatedElementHighlightConfig>,
}
impl SetShowIsolatedElementsParams {
    pub fn new(
        isolated_element_highlight_configs: Vec<super::types::IsolatedElementHighlightConfig>,
    ) -> Self {
        Self {
            isolated_element_highlight_configs,
        }
    }
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub enum SetShowIsolatedElementsMethod {
    #[serde(rename = "Overlay.setShowIsolatedElements")]
    SetShowIsolatedElements,
}
#[doc = "Show elements in isolation mode with overlays.\n[setShowIsolatedElements](https://chromedevtools.github.io/devtools-protocol/tot/Overlay/#method-setShowIsolatedElements)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct SetShowIsolatedElements {
    pub method: SetShowIsolatedElementsMethod,
    pub params: SetShowIsolatedElementsParams,
}
impl SetShowIsolatedElements {
    pub const IDENTIFIER: &'static str = "Overlay.setShowIsolatedElements";
    pub fn identifier(&self) -> &'static str {
        Self::IDENTIFIER
    }
}
impl crate::CommandResult for SetShowIsolatedElements {
    type Result = super::results::SetShowIsolatedElementsResult;
}
#[doc = "Show Window Controls Overlay for PWA\n[setShowWindowControlsOverlay](https://chromedevtools.github.io/devtools-protocol/tot/Overlay/#method-setShowWindowControlsOverlay)"]
#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
pub struct SetShowWindowControlsOverlayParams {
    #[doc = "Window Controls Overlay data, null means hide Window Controls Overlay"]
    #[serde(rename = "windowControlsOverlayConfig")]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    pub window_controls_overlay_config: Option<super::types::WindowControlsOverlayConfig>,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub enum SetShowWindowControlsOverlayMethod {
    #[serde(rename = "Overlay.setShowWindowControlsOverlay")]
    SetShowWindowControlsOverlay,
}
#[doc = "Show Window Controls Overlay for PWA\n[setShowWindowControlsOverlay](https://chromedevtools.github.io/devtools-protocol/tot/Overlay/#method-setShowWindowControlsOverlay)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct SetShowWindowControlsOverlay {
    pub method: SetShowWindowControlsOverlayMethod,
    pub params: SetShowWindowControlsOverlayParams,
}
impl SetShowWindowControlsOverlay {
    pub const IDENTIFIER: &'static str = "Overlay.setShowWindowControlsOverlay";
    pub fn identifier(&self) -> &'static str {
        Self::IDENTIFIER
    }
}
impl crate::CommandResult for SetShowWindowControlsOverlay {
    type Result = super::results::SetShowWindowControlsOverlayResult;
}
group_enum ! (OverlayCommands { Disable (Disable) , Enable (Enable) , GetHighlightObjectForTest (GetHighlightObjectForTest) , GetGridHighlightObjectsForTest (GetGridHighlightObjectsForTest) , GetSourceOrderHighlightObjectForTest (GetSourceOrderHighlightObjectForTest) , HideHighlight (HideHighlight) , HighlightNode (HighlightNode) , HighlightQuad (HighlightQuad) , HighlightRect (HighlightRect) , HighlightSourceOrder (HighlightSourceOrder) , SetInspectMode (SetInspectMode) , SetShowAdHighlights (SetShowAdHighlights) , SetPausedInDebuggerMessage (SetPausedInDebuggerMessage) , SetShowDebugBorders (SetShowDebugBorders) , SetShowFpsCounter (SetShowFpsCounter) , SetShowGridOverlays (SetShowGridOverlays) , SetShowFlexOverlays (SetShowFlexOverlays) , SetShowScrollSnapOverlays (SetShowScrollSnapOverlays) , SetShowContainerQueryOverlays (SetShowContainerQueryOverlays) , SetShowInspectedElementAnchor (SetShowInspectedElementAnchor) , SetShowPaintRects (SetShowPaintRects) , SetShowLayoutShiftRegions (SetShowLayoutShiftRegions) , SetShowScrollBottleneckRects (SetShowScrollBottleneckRects) , SetShowViewportSizeOnResize (SetShowViewportSizeOnResize) , SetShowHinge (SetShowHinge) , SetShowIsolatedElements (SetShowIsolatedElements) , SetShowWindowControlsOverlay (SetShowWindowControlsOverlay) } + identifiable);