cdp-protocol 0.3.1

A Rust implementation of the Chrome DevTools Protocol
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
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
// Auto-generated from Chrome at version 146.0.7680.165 domain: Runtime
#![allow(dead_code)]
#[allow(unused_imports)]
use super::types::*;
#[allow(unused_imports)]
use derive_builder::Builder;
#[allow(unused_imports)]
use serde::{Deserialize, Serialize};
#[allow(unused_imports)]
use serde_json::Value as Json;
pub type ScriptId = String;
pub type RemoteObjectId = String;
pub type UnserializableValue = String;
pub type ExecutionContextId = JsUInt;
pub type Timestamp = JsFloat;
pub type TimeDelta = JsFloat;
pub type UniqueDebuggerId = String;
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub enum SerializationOptionsSerialization {
    #[serde(rename = "deep")]
    Deep,
    #[serde(rename = "json")]
    Json,
    #[serde(rename = "idOnly")]
    IdOnly,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub enum DeepSerializedValueType {
    #[serde(rename = "undefined")]
    Undefined,
    #[serde(rename = "null")]
    Null,
    #[serde(rename = "string")]
    String,
    #[serde(rename = "number")]
    Number,
    #[serde(rename = "boolean")]
    Boolean,
    #[serde(rename = "bigint")]
    Bigint,
    #[serde(rename = "regexp")]
    Regexp,
    #[serde(rename = "date")]
    Date,
    #[serde(rename = "symbol")]
    Symbol,
    #[serde(rename = "array")]
    Array,
    #[serde(rename = "object")]
    Object,
    #[serde(rename = "function")]
    Function,
    #[serde(rename = "map")]
    Map,
    #[serde(rename = "set")]
    Set,
    #[serde(rename = "weakmap")]
    Weakmap,
    #[serde(rename = "weakset")]
    Weakset,
    #[serde(rename = "error")]
    Error,
    #[serde(rename = "proxy")]
    Proxy,
    #[serde(rename = "promise")]
    Promise,
    #[serde(rename = "typedarray")]
    Typedarray,
    #[serde(rename = "arraybuffer")]
    Arraybuffer,
    #[serde(rename = "node")]
    Node,
    #[serde(rename = "window")]
    Window,
    #[serde(rename = "generator")]
    Generator,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub enum RemoteObjectType {
    #[serde(rename = "object")]
    Object,
    #[serde(rename = "function")]
    Function,
    #[serde(rename = "undefined")]
    Undefined,
    #[serde(rename = "string")]
    String,
    #[serde(rename = "number")]
    Number,
    #[serde(rename = "boolean")]
    Boolean,
    #[serde(rename = "symbol")]
    Symbol,
    #[serde(rename = "bigint")]
    Bigint,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub enum RemoteObjectSubtype {
    #[serde(rename = "array")]
    Array,
    #[serde(rename = "null")]
    Null,
    #[serde(rename = "node")]
    Node,
    #[serde(rename = "regexp")]
    Regexp,
    #[serde(rename = "date")]
    Date,
    #[serde(rename = "map")]
    Map,
    #[serde(rename = "set")]
    Set,
    #[serde(rename = "weakmap")]
    Weakmap,
    #[serde(rename = "weakset")]
    Weakset,
    #[serde(rename = "iterator")]
    Iterator,
    #[serde(rename = "generator")]
    Generator,
    #[serde(rename = "error")]
    Error,
    #[serde(rename = "proxy")]
    Proxy,
    #[serde(rename = "promise")]
    Promise,
    #[serde(rename = "typedarray")]
    Typedarray,
    #[serde(rename = "arraybuffer")]
    Arraybuffer,
    #[serde(rename = "dataview")]
    Dataview,
    #[serde(rename = "webassemblymemory")]
    Webassemblymemory,
    #[serde(rename = "wasmvalue")]
    Wasmvalue,
    #[serde(rename = "trustedtype")]
    Trustedtype,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub enum ObjectPreviewType {
    #[serde(rename = "object")]
    Object,
    #[serde(rename = "function")]
    Function,
    #[serde(rename = "undefined")]
    Undefined,
    #[serde(rename = "string")]
    String,
    #[serde(rename = "number")]
    Number,
    #[serde(rename = "boolean")]
    Boolean,
    #[serde(rename = "symbol")]
    Symbol,
    #[serde(rename = "bigint")]
    Bigint,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub enum ObjectPreviewSubtype {
    #[serde(rename = "array")]
    Array,
    #[serde(rename = "null")]
    Null,
    #[serde(rename = "node")]
    Node,
    #[serde(rename = "regexp")]
    Regexp,
    #[serde(rename = "date")]
    Date,
    #[serde(rename = "map")]
    Map,
    #[serde(rename = "set")]
    Set,
    #[serde(rename = "weakmap")]
    Weakmap,
    #[serde(rename = "weakset")]
    Weakset,
    #[serde(rename = "iterator")]
    Iterator,
    #[serde(rename = "generator")]
    Generator,
    #[serde(rename = "error")]
    Error,
    #[serde(rename = "proxy")]
    Proxy,
    #[serde(rename = "promise")]
    Promise,
    #[serde(rename = "typedarray")]
    Typedarray,
    #[serde(rename = "arraybuffer")]
    Arraybuffer,
    #[serde(rename = "dataview")]
    Dataview,
    #[serde(rename = "webassemblymemory")]
    Webassemblymemory,
    #[serde(rename = "wasmvalue")]
    Wasmvalue,
    #[serde(rename = "trustedtype")]
    Trustedtype,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub enum PropertyPreviewType {
    #[serde(rename = "object")]
    Object,
    #[serde(rename = "function")]
    Function,
    #[serde(rename = "undefined")]
    Undefined,
    #[serde(rename = "string")]
    String,
    #[serde(rename = "number")]
    Number,
    #[serde(rename = "boolean")]
    Boolean,
    #[serde(rename = "symbol")]
    Symbol,
    #[serde(rename = "accessor")]
    Accessor,
    #[serde(rename = "bigint")]
    Bigint,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub enum PropertyPreviewSubtype {
    #[serde(rename = "array")]
    Array,
    #[serde(rename = "null")]
    Null,
    #[serde(rename = "node")]
    Node,
    #[serde(rename = "regexp")]
    Regexp,
    #[serde(rename = "date")]
    Date,
    #[serde(rename = "map")]
    Map,
    #[serde(rename = "set")]
    Set,
    #[serde(rename = "weakmap")]
    Weakmap,
    #[serde(rename = "weakset")]
    Weakset,
    #[serde(rename = "iterator")]
    Iterator,
    #[serde(rename = "generator")]
    Generator,
    #[serde(rename = "error")]
    Error,
    #[serde(rename = "proxy")]
    Proxy,
    #[serde(rename = "promise")]
    Promise,
    #[serde(rename = "typedarray")]
    Typedarray,
    #[serde(rename = "arraybuffer")]
    Arraybuffer,
    #[serde(rename = "dataview")]
    Dataview,
    #[serde(rename = "webassemblymemory")]
    Webassemblymemory,
    #[serde(rename = "wasmvalue")]
    Wasmvalue,
    #[serde(rename = "trustedtype")]
    Trustedtype,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub enum ConsoleApiCalledTypeOption {
    #[serde(rename = "log")]
    Log,
    #[serde(rename = "debug")]
    Debug,
    #[serde(rename = "info")]
    Info,
    #[serde(rename = "error")]
    Error,
    #[serde(rename = "warning")]
    Warning,
    #[serde(rename = "dir")]
    Dir,
    #[serde(rename = "dirxml")]
    Dirxml,
    #[serde(rename = "table")]
    Table,
    #[serde(rename = "trace")]
    Trace,
    #[serde(rename = "clear")]
    Clear,
    #[serde(rename = "startGroup")]
    StartGroup,
    #[serde(rename = "startGroupCollapsed")]
    StartGroupCollapsed,
    #[serde(rename = "endGroup")]
    EndGroup,
    #[serde(rename = "assert")]
    Assert,
    #[serde(rename = "profile")]
    Profile,
    #[serde(rename = "profileEnd")]
    ProfileEnd,
    #[serde(rename = "count")]
    Count,
    #[serde(rename = "timeEnd")]
    TimeEnd,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Represents options for serialization. Overrides `generatePreview` and `returnByValue`."]
pub struct SerializationOptions {
    pub serialization: SerializationOptionsSerialization,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Deep serialization depth. Default is full depth. Respected only in `deep` serialization mode."]
    pub max_depth: Option<JsUInt>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Embedder-specific parameters. For example if connected to V8 in Chrome these control DOM\n serialization via `maxNodeDepth: integer` and `includeShadowTree: \"none\" | \"open\" | \"all\"`.\n Values can be only of type string or integer."]
    pub additional_parameters: Option<Json>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Represents deep serialized value."]
pub struct DeepSerializedValue {
    pub r#type: DeepSerializedValueType,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    pub value: Option<Json>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    pub object_id: Option<String>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Set if value reference met more then once during serialization. In such\n case, value is provided only to one of the serialized values. Unique\n per value in the scope of one CDP call."]
    pub weak_local_object_reference: Option<JsUInt>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Mirror object referencing original JavaScript object."]
pub struct RemoteObject {
    #[doc = "Object type."]
    pub r#type: RemoteObjectType,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Object subtype hint. Specified for `object` type values only.\n NOTE: If you change anything here, make sure to also update\n `subtype` in `ObjectPreview` and `PropertyPreview` below."]
    pub subtype: Option<RemoteObjectSubtype>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Object class (constructor) name. Specified for `object` type values only."]
    pub class_name: Option<String>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Remote object value in case of primitive values or JSON values (if it was requested)."]
    pub value: Option<Json>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Primitive value which can not be JSON-stringified does not have `value`, but gets this\n property."]
    pub unserializable_value: Option<UnserializableValue>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "String representation of the object."]
    pub description: Option<String>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Deep serialized value."]
    pub deep_serialized_value: Option<DeepSerializedValue>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Unique object identifier (for non-primitive values)."]
    pub object_id: Option<RemoteObjectId>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Preview containing abbreviated property values. Specified for `object` type values only."]
    pub preview: Option<ObjectPreview>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    pub custom_preview: Option<CustomPreview>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
pub struct CustomPreview {
    #[serde(default)]
    #[doc = "The JSON-stringified result of formatter.header(object, config) call.\n It contains json ML array that represents RemoteObject."]
    pub header: String,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "If formatter returns true as a result of formatter.hasBody call then bodyGetterId will\n contain RemoteObjectId for the function that returns result of formatter.body(object, config) call.\n The result value is json ML array."]
    pub body_getter_id: Option<RemoteObjectId>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Object containing abbreviated remote object value."]
pub struct ObjectPreview {
    #[doc = "Object type."]
    pub r#type: ObjectPreviewType,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Object subtype hint. Specified for `object` type values only."]
    pub subtype: Option<ObjectPreviewSubtype>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "String representation of the object."]
    pub description: Option<String>,
    #[serde(default)]
    #[doc = "True iff some of the properties or entries of the original object did not fit."]
    pub overflow: bool,
    #[doc = "List of the properties."]
    pub properties: Vec<PropertyPreview>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "List of the entries. Specified for `map` and `set` subtype values only."]
    pub entries: Option<Vec<EntryPreview>>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
pub struct PropertyPreview {
    #[serde(default)]
    #[doc = "Property name."]
    pub name: String,
    #[doc = "Object type. Accessor means that the property itself is an accessor property."]
    pub r#type: PropertyPreviewType,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "User-friendly property value string."]
    pub value: Option<String>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Nested value preview."]
    pub value_preview: Option<ObjectPreview>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Object subtype hint. Specified for `object` type values only."]
    pub subtype: Option<PropertyPreviewSubtype>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
pub struct EntryPreview {
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Preview of the key. Specified for map-like collection entries."]
    pub key: Option<ObjectPreview>,
    #[doc = "Preview of the value."]
    pub value: ObjectPreview,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Object property descriptor."]
pub struct PropertyDescriptor {
    #[serde(default)]
    #[doc = "Property name or symbol description."]
    pub name: String,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "The value associated with the property."]
    pub value: Option<RemoteObject>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "True if the value associated with the property may be changed (data descriptors only)."]
    pub writable: Option<bool>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "A function which serves as a getter for the property, or `undefined` if there is no getter\n (accessor descriptors only)."]
    pub get: Option<RemoteObject>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "A function which serves as a setter for the property, or `undefined` if there is no setter\n (accessor descriptors only)."]
    pub set: Option<RemoteObject>,
    #[serde(default)]
    #[doc = "True if the type of this property descriptor may be changed and if the property may be\n deleted from the corresponding object."]
    pub configurable: bool,
    #[serde(default)]
    #[doc = "True if this property shows up during enumeration of the properties on the corresponding\n object."]
    pub enumerable: bool,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "True if the result was thrown during the evaluation."]
    pub was_thrown: Option<bool>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "True if the property is owned for the object."]
    pub is_own: Option<bool>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Property symbol object, if the property is of the `symbol` type."]
    pub symbol: Option<RemoteObject>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Object internal property descriptor. This property isn't normally visible in JavaScript code."]
pub struct InternalPropertyDescriptor {
    #[serde(default)]
    #[doc = "Conventional property name."]
    pub name: String,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "The value associated with the property."]
    pub value: Option<RemoteObject>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Object private field descriptor."]
pub struct PrivatePropertyDescriptor {
    #[serde(default)]
    #[doc = "Private property name."]
    pub name: String,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "The value associated with the private property."]
    pub value: Option<RemoteObject>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "A function which serves as a getter for the private property,\n or `undefined` if there is no getter (accessor descriptors only)."]
    pub get: Option<RemoteObject>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "A function which serves as a setter for the private property,\n or `undefined` if there is no setter (accessor descriptors only)."]
    pub set: Option<RemoteObject>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Represents function call argument. Either remote object id `objectId`, primitive `value`,\n unserializable primitive value or neither of (for undefined) them should be specified."]
pub struct CallArgument {
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Primitive value or serializable javascript object."]
    pub value: Option<Json>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Primitive value which can not be JSON-stringified."]
    pub unserializable_value: Option<UnserializableValue>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Remote object handle."]
    pub object_id: Option<RemoteObjectId>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Description of an isolated world."]
pub struct ExecutionContextDescription {
    #[doc = "Unique id of the execution context. It can be used to specify in which execution context\n script evaluation should be performed."]
    pub id: ExecutionContextId,
    #[serde(default)]
    #[doc = "Execution context origin."]
    pub origin: String,
    #[serde(default)]
    #[doc = "Human readable name describing given context."]
    pub name: String,
    #[serde(default)]
    #[doc = "A system-unique execution context identifier. Unlike the id, this is unique across\n multiple processes, so can be reliably used to identify specific context while backend\n performs a cross-process navigation."]
    pub unique_id: String,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Embedder-specific auxiliary data likely matching {isDefault: boolean, type: 'default'|'isolated'|'worker', frameId: string}"]
    pub aux_data: Option<Json>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Detailed information about exception (or error) that was thrown during script compilation or\n execution."]
pub struct ExceptionDetails {
    #[serde(default)]
    #[doc = "Exception id."]
    pub exception_id: JsUInt,
    #[serde(default)]
    #[doc = "Exception text, which should be used together with exception object when available."]
    pub text: String,
    #[serde(default)]
    #[doc = "Line number of the exception location (0-based)."]
    pub line_number: JsUInt,
    #[serde(default)]
    #[doc = "Column number of the exception location (0-based)."]
    pub column_number: JsUInt,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Script ID of the exception location."]
    pub script_id: Option<ScriptId>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "URL of the exception location, to be used when the script was not reported."]
    pub url: Option<String>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "JavaScript stack trace if available."]
    pub stack_trace: Option<StackTrace>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Exception object if available."]
    pub exception: Option<RemoteObject>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Identifier of the context where exception happened."]
    pub execution_context_id: Option<ExecutionContextId>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Dictionary with entries of meta data that the client associated\n with this exception, such as information about associated network\n requests, etc."]
    pub exception_meta_data: Option<Json>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Stack entry for runtime errors and assertions."]
pub struct CallFrame {
    #[serde(default)]
    #[doc = "JavaScript function name."]
    pub function_name: String,
    #[doc = "JavaScript script id."]
    pub script_id: ScriptId,
    #[serde(default)]
    #[doc = "JavaScript script name or url."]
    pub url: String,
    #[serde(default)]
    #[doc = "JavaScript script line number (0-based)."]
    pub line_number: JsUInt,
    #[serde(default)]
    #[doc = "JavaScript script column number (0-based)."]
    pub column_number: JsUInt,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Call frames for assertions or error messages."]
pub struct StackTrace {
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "String label of this stack trace. For async traces this may be a name of the function that\n initiated the async call."]
    pub description: Option<String>,
    #[doc = "JavaScript function name."]
    pub call_frames: Vec<CallFrame>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Asynchronous JavaScript stack trace that preceded this stack, if available."]
    pub parent: Option<Box<StackTrace>>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Asynchronous JavaScript stack trace that preceded this stack, if available."]
    pub parent_id: Option<StackTraceId>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "If `debuggerId` is set stack trace comes from another debugger and can be resolved there. This\n allows to track cross-debugger calls. See `Runtime.StackTrace` and `Debugger.paused` for usages."]
pub struct StackTraceId {
    #[serde(default)]
    pub id: String,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    pub debugger_id: Option<UniqueDebuggerId>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Add handler to promise with given promise object id."]
pub struct AwaitPromise {
    #[doc = "Identifier of the promise."]
    pub promise_object_id: RemoteObjectId,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Whether the result is expected to be a JSON object that should be sent by value."]
    pub return_by_value: Option<bool>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Whether preview should be generated for the result."]
    pub generate_preview: Option<bool>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Calls function with given declaration on the given object. Object group of the result is\n inherited from the target object."]
pub struct CallFunctionOn {
    #[serde(default)]
    #[doc = "Declaration of the function to call."]
    pub function_declaration: String,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Identifier of the object to call function on. Either objectId or executionContextId should\n be specified."]
    pub object_id: Option<RemoteObjectId>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Call arguments. All call arguments must belong to the same JavaScript world as the target\n object."]
    pub arguments: Option<Vec<CallArgument>>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "In silent mode exceptions thrown during evaluation are not reported and do not pause\n execution. Overrides `setPauseOnException` state."]
    pub silent: Option<bool>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Whether the result is expected to be a JSON object which should be sent by value.\n Can be overriden by `serializationOptions`."]
    pub return_by_value: Option<bool>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Whether preview should be generated for the result."]
    pub generate_preview: Option<bool>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Whether execution should be treated as initiated by user in the UI."]
    pub user_gesture: Option<bool>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Whether execution should `await` for resulting value and return once awaited promise is\n resolved."]
    pub await_promise: Option<bool>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Specifies execution context which global object will be used to call function on. Either\n executionContextId or objectId should be specified."]
    pub execution_context_id: Option<ExecutionContextId>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Symbolic group name that can be used to release multiple objects. If objectGroup is not\n specified and objectId is, objectGroup will be inherited from object."]
    pub object_group: Option<String>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Whether to throw an exception if side effect cannot be ruled out during evaluation."]
    pub throw_on_side_effect: Option<bool>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "An alternative way to specify the execution context to call function on.\n Compared to contextId that may be reused across processes, this is guaranteed to be\n system-unique, so it can be used to prevent accidental function call\n in context different than intended (e.g. as a result of navigation across process\n boundaries).\n This is mutually exclusive with `executionContextId`."]
    pub unique_context_id: Option<String>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Specifies the result serialization. If provided, overrides\n `generatePreview` and `returnByValue`."]
    pub serialization_options: Option<SerializationOptions>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Compiles expression."]
pub struct CompileScript {
    #[serde(default)]
    #[doc = "Expression to compile."]
    pub expression: String,
    #[serde(default)]
    #[doc = "Source url to be set for the script."]
    #[serde(rename = "sourceURL")]
    pub source_url: String,
    #[serde(default)]
    #[doc = "Specifies whether the compiled script should be persisted."]
    pub persist_script: bool,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Specifies in which execution context to perform script run. If the parameter is omitted the\n evaluation will be performed in the context of the inspected page."]
    pub execution_context_id: Option<ExecutionContextId>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub struct Disable(pub Option<Json>);
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub struct DiscardConsoleEntries(pub Option<Json>);
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub struct Enable(pub Option<Json>);
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Evaluates expression on global object."]
pub struct Evaluate {
    #[serde(default)]
    #[doc = "Expression to evaluate."]
    pub expression: String,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Symbolic group name that can be used to release multiple objects."]
    pub object_group: Option<String>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Determines whether Command Line API should be available during the evaluation."]
    #[serde(rename = "includeCommandLineAPI")]
    pub include_command_line_api: Option<bool>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "In silent mode exceptions thrown during evaluation are not reported and do not pause\n execution. Overrides `setPauseOnException` state."]
    pub silent: Option<bool>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Specifies in which execution context to perform evaluation. If the parameter is omitted the\n evaluation will be performed in the context of the inspected page.\n This is mutually exclusive with `uniqueContextId`, which offers an\n alternative way to identify the execution context that is more reliable\n in a multi-process environment."]
    pub context_id: Option<ExecutionContextId>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Whether the result is expected to be a JSON object that should be sent by value."]
    pub return_by_value: Option<bool>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Whether preview should be generated for the result."]
    pub generate_preview: Option<bool>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Whether execution should be treated as initiated by user in the UI."]
    pub user_gesture: Option<bool>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Whether execution should `await` for resulting value and return once awaited promise is\n resolved."]
    pub await_promise: Option<bool>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Whether to throw an exception if side effect cannot be ruled out during evaluation.\n This implies `disableBreaks` below."]
    pub throw_on_side_effect: Option<bool>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Terminate execution after timing out (number of milliseconds)."]
    pub timeout: Option<TimeDelta>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Disable breakpoints during execution."]
    pub disable_breaks: Option<bool>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Setting this flag to true enables `let` re-declaration and top-level `await`.\n Note that `let` variables can only be re-declared if they originate from\n `replMode` themselves."]
    pub repl_mode: Option<bool>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "The Content Security Policy (CSP) for the target might block 'unsafe-eval'\n which includes eval(), Function(), setTimeout() and setInterval()\n when called with non-callable arguments. This flag bypasses CSP for this\n evaluation and allows unsafe-eval. Defaults to true."]
    #[serde(rename = "allowUnsafeEvalBlockedByCSP")]
    pub allow_unsafe_eval_blocked_by_csp: Option<bool>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "An alternative way to specify the execution context to evaluate in.\n Compared to contextId that may be reused across processes, this is guaranteed to be\n system-unique, so it can be used to prevent accidental evaluation of the expression\n in context different than intended (e.g. as a result of navigation across process\n boundaries).\n This is mutually exclusive with `contextId`."]
    pub unique_context_id: Option<String>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Specifies the result serialization. If provided, overrides\n `generatePreview` and `returnByValue`."]
    pub serialization_options: Option<SerializationOptions>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub struct GetIsolateId(pub Option<Json>);
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub struct GetHeapUsage(pub Option<Json>);
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Returns properties of a given object. Object group of the result is inherited from the target\n object."]
pub struct GetProperties {
    #[doc = "Identifier of the object to return properties for."]
    pub object_id: RemoteObjectId,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "If true, returns properties belonging only to the element itself, not to its prototype\n chain."]
    pub own_properties: Option<bool>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "If true, returns accessor properties (with getter/setter) only; internal properties are not\n returned either."]
    pub accessor_properties_only: Option<bool>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Whether preview should be generated for the results."]
    pub generate_preview: Option<bool>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "If true, returns non-indexed properties only."]
    pub non_indexed_properties_only: Option<bool>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Returns all let, const and class variables from global scope."]
pub struct GlobalLexicalScopeNames {
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Specifies in which execution context to lookup global scope variables."]
    pub execution_context_id: Option<ExecutionContextId>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
pub struct QueryObjects {
    #[doc = "Identifier of the prototype to return objects for."]
    pub prototype_object_id: RemoteObjectId,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Symbolic group name that can be used to release the results."]
    pub object_group: Option<String>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Releases remote object with given id."]
pub struct ReleaseObject {
    #[doc = "Identifier of the object to release."]
    pub object_id: RemoteObjectId,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Releases all remote objects that belong to a given group."]
pub struct ReleaseObjectGroup {
    #[serde(default)]
    #[doc = "Symbolic object group name."]
    pub object_group: String,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub struct RunIfWaitingForDebugger(pub Option<Json>);
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Runs script with given id in a given context."]
pub struct RunScript {
    #[doc = "Id of the script to run."]
    pub script_id: ScriptId,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Specifies in which execution context to perform script run. If the parameter is omitted the\n evaluation will be performed in the context of the inspected page."]
    pub execution_context_id: Option<ExecutionContextId>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Symbolic group name that can be used to release multiple objects."]
    pub object_group: Option<String>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "In silent mode exceptions thrown during evaluation are not reported and do not pause\n execution. Overrides `setPauseOnException` state."]
    pub silent: Option<bool>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Determines whether Command Line API should be available during the evaluation."]
    #[serde(rename = "includeCommandLineAPI")]
    pub include_command_line_api: Option<bool>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Whether the result is expected to be a JSON object which should be sent by value."]
    pub return_by_value: Option<bool>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Whether preview should be generated for the result."]
    pub generate_preview: Option<bool>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Whether execution should `await` for resulting value and return once awaited promise is\n resolved."]
    pub await_promise: Option<bool>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Enables or disables async call stacks tracking."]
pub struct SetAsyncCallStackDepth {
    #[serde(default)]
    #[doc = "Maximum depth of async call stacks. Setting to `0` will effectively disable collecting async\n call stacks (default)."]
    pub max_depth: JsUInt,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
pub struct SetCustomObjectFormatterEnabled {
    #[serde(default)]
    pub enabled: bool,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
pub struct SetMaxCallStackSizeToCapture {
    #[serde(default)]
    pub size: JsUInt,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub struct TerminateExecution(pub Option<Json>);
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "If executionContextId is empty, adds binding with the given name on the\n global objects of all inspected contexts, including those created later,\n bindings survive reloads.\n Binding function takes exactly one argument, this argument should be string,\n in case of any other input, function throws an exception.\n Each binding function call produces Runtime.bindingCalled notification."]
pub struct AddBinding {
    #[serde(default)]
    pub name: String,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "If specified, the binding would only be exposed to the specified\n execution context. If omitted and `executionContextName` is not set,\n the binding is exposed to all execution contexts of the target.\n This parameter is mutually exclusive with `executionContextName`.\n Deprecated in favor of `executionContextName` due to an unclear use case\n and bugs in implementation (crbug.com/1169639). `executionContextId` will be\n removed in the future."]
    #[deprecated]
    pub execution_context_id: Option<ExecutionContextId>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "If specified, the binding is exposed to the executionContext with\n matching name, even for contexts created after the binding is added.\n See also `ExecutionContext.name` and `worldName` parameter to\n `Page.addScriptToEvaluateOnNewDocument`.\n This parameter is mutually exclusive with `executionContextId`."]
    pub execution_context_name: Option<String>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "This method does not remove binding function from global object but\n unsubscribes current runtime agent from Runtime.bindingCalled notifications."]
pub struct RemoveBinding {
    #[serde(default)]
    pub name: String,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "This method tries to lookup and populate exception details for a\n JavaScript Error object.\n Note that the stackTrace portion of the resulting exceptionDetails will\n only be populated if the Runtime domain was enabled at the time when the\n Error was thrown."]
pub struct GetExceptionDetails {
    #[doc = "The error object for which to resolve the exception details."]
    pub error_object_id: RemoteObjectId,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[serde(rename_all = "camelCase")]
#[doc = "Add handler to promise with given promise object id."]
pub struct AwaitPromiseReturnObject {
    #[doc = "Promise result. Will contain rejected value if promise was rejected."]
    pub result: RemoteObject,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Exception details if stack strace is available."]
    pub exception_details: Option<ExceptionDetails>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[serde(rename_all = "camelCase")]
#[doc = "Calls function with given declaration on the given object. Object group of the result is\n inherited from the target object."]
pub struct CallFunctionOnReturnObject {
    #[doc = "Call result."]
    pub result: RemoteObject,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Exception details."]
    pub exception_details: Option<ExceptionDetails>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[serde(rename_all = "camelCase")]
#[doc = "Compiles expression."]
pub struct CompileScriptReturnObject {
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Id of the script."]
    pub script_id: Option<ScriptId>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Exception details."]
    pub exception_details: Option<ExceptionDetails>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
#[doc = "Disables reporting of execution contexts creation."]
pub struct DisableReturnObject(pub Option<Json>);
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
#[doc = "Discards collected exceptions and console API calls."]
pub struct DiscardConsoleEntriesReturnObject(pub Option<Json>);
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
#[doc = "Enables reporting of execution contexts creation by means of `executionContextCreated` event.\n When the reporting gets enabled the event will be sent immediately for each existing execution\n context."]
pub struct EnableReturnObject(pub Option<Json>);
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[serde(rename_all = "camelCase")]
#[doc = "Evaluates expression on global object."]
pub struct EvaluateReturnObject {
    #[doc = "Evaluation result."]
    pub result: RemoteObject,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Exception details."]
    pub exception_details: Option<ExceptionDetails>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[serde(rename_all = "camelCase")]
#[doc = "Returns the isolate id."]
pub struct GetIsolateIdReturnObject {
    #[serde(default)]
    #[doc = "The isolate id."]
    pub id: String,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[serde(rename_all = "camelCase")]
#[doc = "Returns the JavaScript heap usage.\n It is the total usage of the corresponding isolate not scoped to a particular Runtime."]
pub struct GetHeapUsageReturnObject {
    #[serde(default)]
    #[doc = "Used JavaScript heap size in bytes."]
    pub used_size: JsFloat,
    #[serde(default)]
    #[doc = "Allocated JavaScript heap size in bytes."]
    pub total_size: JsFloat,
    #[serde(default)]
    #[doc = "Used size in bytes in the embedder's garbage-collected heap."]
    pub embedder_heap_used_size: JsFloat,
    #[serde(default)]
    #[doc = "Size in bytes of backing storage for array buffers and external strings."]
    pub backing_storage_size: JsFloat,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[serde(rename_all = "camelCase")]
#[doc = "Returns properties of a given object. Object group of the result is inherited from the target\n object."]
pub struct GetPropertiesReturnObject {
    #[doc = "Object properties."]
    pub result: Vec<PropertyDescriptor>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Internal object properties (only of the element itself)."]
    pub internal_properties: Option<Vec<InternalPropertyDescriptor>>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Object private properties."]
    pub private_properties: Option<Vec<PrivatePropertyDescriptor>>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Exception details."]
    pub exception_details: Option<ExceptionDetails>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[serde(rename_all = "camelCase")]
#[doc = "Returns all let, const and class variables from global scope."]
pub struct GlobalLexicalScopeNamesReturnObject {
    pub names: Vec<String>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[serde(rename_all = "camelCase")]
pub struct QueryObjectsReturnObject {
    #[doc = "Array with objects."]
    pub objects: RemoteObject,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
#[doc = "Releases remote object with given id."]
pub struct ReleaseObjectReturnObject(pub Option<Json>);
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
#[doc = "Releases all remote objects that belong to a given group."]
pub struct ReleaseObjectGroupReturnObject(pub Option<Json>);
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
#[doc = "Tells inspected instance to run if it was waiting for debugger to attach."]
pub struct RunIfWaitingForDebuggerReturnObject(pub Option<Json>);
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[serde(rename_all = "camelCase")]
#[doc = "Runs script with given id in a given context."]
pub struct RunScriptReturnObject {
    #[doc = "Run result."]
    pub result: RemoteObject,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Exception details."]
    pub exception_details: Option<ExceptionDetails>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
#[doc = "Enables or disables async call stacks tracking."]
pub struct SetAsyncCallStackDepthReturnObject(pub Option<Json>);
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub struct SetCustomObjectFormatterEnabledReturnObject(pub Option<Json>);
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub struct SetMaxCallStackSizeToCaptureReturnObject(pub Option<Json>);
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
#[doc = "Terminate current or next JavaScript execution.\n Will cancel the termination when the outer-most script execution ends."]
pub struct TerminateExecutionReturnObject(pub Option<Json>);
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
#[doc = "If executionContextId is empty, adds binding with the given name on the\n global objects of all inspected contexts, including those created later,\n bindings survive reloads.\n Binding function takes exactly one argument, this argument should be string,\n in case of any other input, function throws an exception.\n Each binding function call produces Runtime.bindingCalled notification."]
pub struct AddBindingReturnObject(pub Option<Json>);
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
#[doc = "This method does not remove binding function from global object but\n unsubscribes current runtime agent from Runtime.bindingCalled notifications."]
pub struct RemoveBindingReturnObject(pub Option<Json>);
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[serde(rename_all = "camelCase")]
#[doc = "This method tries to lookup and populate exception details for a\n JavaScript Error object.\n Note that the stackTrace portion of the resulting exceptionDetails will\n only be populated if the Runtime domain was enabled at the time when the\n Error was thrown."]
pub struct GetExceptionDetailsReturnObject {
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    pub exception_details: Option<ExceptionDetails>,
}
#[allow(deprecated)]
impl Method for AwaitPromise {
    const NAME: &'static str = "Runtime.awaitPromise";
    type ReturnObject = AwaitPromiseReturnObject;
}
#[allow(deprecated)]
impl Method for CallFunctionOn {
    const NAME: &'static str = "Runtime.callFunctionOn";
    type ReturnObject = CallFunctionOnReturnObject;
}
#[allow(deprecated)]
impl Method for CompileScript {
    const NAME: &'static str = "Runtime.compileScript";
    type ReturnObject = CompileScriptReturnObject;
}
#[allow(deprecated)]
impl Method for Disable {
    const NAME: &'static str = "Runtime.disable";
    type ReturnObject = DisableReturnObject;
}
#[allow(deprecated)]
impl Method for DiscardConsoleEntries {
    const NAME: &'static str = "Runtime.discardConsoleEntries";
    type ReturnObject = DiscardConsoleEntriesReturnObject;
}
#[allow(deprecated)]
impl Method for Enable {
    const NAME: &'static str = "Runtime.enable";
    type ReturnObject = EnableReturnObject;
}
#[allow(deprecated)]
impl Method for Evaluate {
    const NAME: &'static str = "Runtime.evaluate";
    type ReturnObject = EvaluateReturnObject;
}
#[allow(deprecated)]
impl Method for GetIsolateId {
    const NAME: &'static str = "Runtime.getIsolateId";
    type ReturnObject = GetIsolateIdReturnObject;
}
#[allow(deprecated)]
impl Method for GetHeapUsage {
    const NAME: &'static str = "Runtime.getHeapUsage";
    type ReturnObject = GetHeapUsageReturnObject;
}
#[allow(deprecated)]
impl Method for GetProperties {
    const NAME: &'static str = "Runtime.getProperties";
    type ReturnObject = GetPropertiesReturnObject;
}
#[allow(deprecated)]
impl Method for GlobalLexicalScopeNames {
    const NAME: &'static str = "Runtime.globalLexicalScopeNames";
    type ReturnObject = GlobalLexicalScopeNamesReturnObject;
}
#[allow(deprecated)]
impl Method for QueryObjects {
    const NAME: &'static str = "Runtime.queryObjects";
    type ReturnObject = QueryObjectsReturnObject;
}
#[allow(deprecated)]
impl Method for ReleaseObject {
    const NAME: &'static str = "Runtime.releaseObject";
    type ReturnObject = ReleaseObjectReturnObject;
}
#[allow(deprecated)]
impl Method for ReleaseObjectGroup {
    const NAME: &'static str = "Runtime.releaseObjectGroup";
    type ReturnObject = ReleaseObjectGroupReturnObject;
}
#[allow(deprecated)]
impl Method for RunIfWaitingForDebugger {
    const NAME: &'static str = "Runtime.runIfWaitingForDebugger";
    type ReturnObject = RunIfWaitingForDebuggerReturnObject;
}
#[allow(deprecated)]
impl Method for RunScript {
    const NAME: &'static str = "Runtime.runScript";
    type ReturnObject = RunScriptReturnObject;
}
#[allow(deprecated)]
impl Method for SetAsyncCallStackDepth {
    const NAME: &'static str = "Runtime.setAsyncCallStackDepth";
    type ReturnObject = SetAsyncCallStackDepthReturnObject;
}
#[allow(deprecated)]
impl Method for SetCustomObjectFormatterEnabled {
    const NAME: &'static str = "Runtime.setCustomObjectFormatterEnabled";
    type ReturnObject = SetCustomObjectFormatterEnabledReturnObject;
}
#[allow(deprecated)]
impl Method for SetMaxCallStackSizeToCapture {
    const NAME: &'static str = "Runtime.setMaxCallStackSizeToCapture";
    type ReturnObject = SetMaxCallStackSizeToCaptureReturnObject;
}
#[allow(deprecated)]
impl Method for TerminateExecution {
    const NAME: &'static str = "Runtime.terminateExecution";
    type ReturnObject = TerminateExecutionReturnObject;
}
#[allow(deprecated)]
impl Method for AddBinding {
    const NAME: &'static str = "Runtime.addBinding";
    type ReturnObject = AddBindingReturnObject;
}
#[allow(deprecated)]
impl Method for RemoveBinding {
    const NAME: &'static str = "Runtime.removeBinding";
    type ReturnObject = RemoveBindingReturnObject;
}
#[allow(deprecated)]
impl Method for GetExceptionDetails {
    const NAME: &'static str = "Runtime.getExceptionDetails";
    type ReturnObject = GetExceptionDetailsReturnObject;
}
#[allow(dead_code)]
pub mod events {
    #[allow(unused_imports)]
    use super::super::types::*;
    #[allow(unused_imports)]
    use derive_builder::Builder;
    #[allow(unused_imports)]
    use serde::{Deserialize, Serialize};
    #[allow(unused_imports)]
    use serde_json::Value as Json;
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
    pub struct BindingCalledEvent {
        pub params: BindingCalledEventParams,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
    #[serde(rename_all = "camelCase")]
    pub struct BindingCalledEventParams {
        #[serde(default)]
        pub name: String,
        #[serde(default)]
        pub payload: String,
        #[doc = "Identifier of the context where the call was made."]
        pub execution_context_id: super::ExecutionContextId,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
    pub struct ConsoleAPICalledEvent {
        pub params: ConsoleAPICalledEventParams,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
    #[serde(rename_all = "camelCase")]
    pub struct ConsoleAPICalledEventParams {
        #[doc = "Type of the call."]
        pub r#type: super::ConsoleApiCalledTypeOption,
        #[doc = "Call arguments."]
        pub args: Vec<super::RemoteObject>,
        #[doc = "Identifier of the context where the call was made."]
        pub execution_context_id: super::ExecutionContextId,
        #[doc = "Call timestamp."]
        pub timestamp: super::Timestamp,
        #[builder(default)]
        #[serde(skip_serializing_if = "Option::is_none")]
        #[doc = "Stack trace captured when the call was made. The async stack chain is automatically reported for\n the following call types: `assert`, `error`, `trace`, `warning`. For other types the async call\n chain can be retrieved using `Debugger.getStackTrace` and `stackTrace.parentId` field."]
        pub stack_trace: Option<super::StackTrace>,
        #[builder(default)]
        #[serde(skip_serializing_if = "Option::is_none")]
        #[serde(default)]
        #[doc = "Console context descriptor for calls on non-default console context (not console.*):\n 'anonymous#unique-logger-id' for call on unnamed context, 'name#unique-logger-id' for call\n on named context."]
        pub context: Option<String>,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
    pub struct ExceptionRevokedEvent {
        pub params: ExceptionRevokedEventParams,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
    #[serde(rename_all = "camelCase")]
    pub struct ExceptionRevokedEventParams {
        #[serde(default)]
        #[doc = "Reason describing why exception was revoked."]
        pub reason: String,
        #[serde(default)]
        #[doc = "The id of revoked exception, as reported in `exceptionThrown`."]
        pub exception_id: JsUInt,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
    pub struct ExceptionThrownEvent {
        pub params: ExceptionThrownEventParams,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
    #[serde(rename_all = "camelCase")]
    pub struct ExceptionThrownEventParams {
        #[doc = "Timestamp of the exception."]
        pub timestamp: super::Timestamp,
        pub exception_details: super::ExceptionDetails,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
    pub struct ExecutionContextCreatedEvent {
        pub params: ExecutionContextCreatedEventParams,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
    #[serde(rename_all = "camelCase")]
    pub struct ExecutionContextCreatedEventParams {
        #[doc = "A newly created execution context."]
        pub context: super::ExecutionContextDescription,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
    pub struct ExecutionContextDestroyedEvent {
        pub params: ExecutionContextDestroyedEventParams,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
    #[serde(rename_all = "camelCase")]
    pub struct ExecutionContextDestroyedEventParams {
        #[doc = "Id of the destroyed context"]
        #[deprecated]
        pub execution_context_id: super::ExecutionContextId,
        #[serde(default)]
        #[doc = "Unique Id of the destroyed context"]
        pub execution_context_unique_id: String,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
    pub struct ExecutionContextsClearedEvent(pub Option<Json>);
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
    pub struct InspectRequestedEvent {
        pub params: InspectRequestedEventParams,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
    #[serde(rename_all = "camelCase")]
    pub struct InspectRequestedEventParams {
        pub object: super::RemoteObject,
        #[serde(default)]
        pub hints: Json,
        #[builder(default)]
        #[serde(skip_serializing_if = "Option::is_none")]
        #[doc = "Identifier of the context where the call was made."]
        pub execution_context_id: Option<super::ExecutionContextId>,
    }
}