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
use serde::{Deserialize, Serialize};
#[doc = "Fired when `Element`'s attribute is modified.\n[attributeModified](https://chromedevtools.github.io/devtools-protocol/tot/DOM/#event-attributeModified)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct AttributeModifiedParams {
    #[doc = "Id of the node that has changed."]
    #[serde(rename = "nodeId")]
    pub node_id: Box<super::types::NodeId>,
    #[doc = "Attribute name."]
    #[serde(rename = "name")]
    pub name: String,
    #[doc = "Attribute value."]
    #[serde(rename = "value")]
    pub value: String,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub enum AttributeModifiedMethod {
    #[serde(rename = "DOM.attributeModified")]
    AttributeModified,
}
#[doc = "Fired when `Element`'s attribute is modified.\n[attributeModified](https://chromedevtools.github.io/devtools-protocol/tot/DOM/#event-attributeModified)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct AttributeModified {
    pub method: AttributeModifiedMethod,
    pub params: AttributeModifiedParams,
}
impl AttributeModified {
    pub const IDENTIFIER: &'static str = "DOM.attributeModified";
    pub fn identifier(&self) -> &'static str {
        Self::IDENTIFIER
    }
}
#[doc = "Fired when `Element`'s adoptedStyleSheets are modified.\n[adoptedStyleSheetsModified](https://chromedevtools.github.io/devtools-protocol/tot/DOM/#event-adoptedStyleSheetsModified)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct AdoptedStyleSheetsModifiedParams {
    #[doc = "Id of the node that has changed."]
    #[serde(rename = "nodeId")]
    pub node_id: Box<super::types::NodeId>,
    #[doc = "New adoptedStyleSheets array."]
    #[serde(rename = "adoptedStyleSheets")]
    #[serde(skip_serializing_if = "Vec::is_empty")]
    pub adopted_style_sheets: Vec<super::types::StyleSheetId>,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub enum AdoptedStyleSheetsModifiedMethod {
    #[serde(rename = "DOM.adoptedStyleSheetsModified")]
    AdoptedStyleSheetsModified,
}
#[doc = "Fired when `Element`'s adoptedStyleSheets are modified.\n[adoptedStyleSheetsModified](https://chromedevtools.github.io/devtools-protocol/tot/DOM/#event-adoptedStyleSheetsModified)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct AdoptedStyleSheetsModified {
    pub method: AdoptedStyleSheetsModifiedMethod,
    pub params: AdoptedStyleSheetsModifiedParams,
}
impl AdoptedStyleSheetsModified {
    pub const IDENTIFIER: &'static str = "DOM.adoptedStyleSheetsModified";
    pub fn identifier(&self) -> &'static str {
        Self::IDENTIFIER
    }
}
#[doc = "Fired when `Element`'s attribute is removed.\n[attributeRemoved](https://chromedevtools.github.io/devtools-protocol/tot/DOM/#event-attributeRemoved)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct AttributeRemovedParams {
    #[doc = "Id of the node that has changed."]
    #[serde(rename = "nodeId")]
    pub node_id: Box<super::types::NodeId>,
    #[doc = "A ttribute name."]
    #[serde(rename = "name")]
    pub name: String,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub enum AttributeRemovedMethod {
    #[serde(rename = "DOM.attributeRemoved")]
    AttributeRemoved,
}
#[doc = "Fired when `Element`'s attribute is removed.\n[attributeRemoved](https://chromedevtools.github.io/devtools-protocol/tot/DOM/#event-attributeRemoved)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct AttributeRemoved {
    pub method: AttributeRemovedMethod,
    pub params: AttributeRemovedParams,
}
impl AttributeRemoved {
    pub const IDENTIFIER: &'static str = "DOM.attributeRemoved";
    pub fn identifier(&self) -> &'static str {
        Self::IDENTIFIER
    }
}
#[doc = "Mirrors `DOMCharacterDataModified` event.\n[characterDataModified](https://chromedevtools.github.io/devtools-protocol/tot/DOM/#event-characterDataModified)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct CharacterDataModifiedParams {
    #[doc = "Id of the node that has changed."]
    #[serde(rename = "nodeId")]
    pub node_id: Box<super::types::NodeId>,
    #[doc = "New text value."]
    #[serde(rename = "characterData")]
    pub character_data: String,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub enum CharacterDataModifiedMethod {
    #[serde(rename = "DOM.characterDataModified")]
    CharacterDataModified,
}
#[doc = "Mirrors `DOMCharacterDataModified` event.\n[characterDataModified](https://chromedevtools.github.io/devtools-protocol/tot/DOM/#event-characterDataModified)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct CharacterDataModified {
    pub method: CharacterDataModifiedMethod,
    pub params: CharacterDataModifiedParams,
}
impl CharacterDataModified {
    pub const IDENTIFIER: &'static str = "DOM.characterDataModified";
    pub fn identifier(&self) -> &'static str {
        Self::IDENTIFIER
    }
}
#[doc = "Fired when `Container`'s child node count has changed.\n[childNodeCountUpdated](https://chromedevtools.github.io/devtools-protocol/tot/DOM/#event-childNodeCountUpdated)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct ChildNodeCountUpdatedParams {
    #[doc = "Id of the node that has changed."]
    #[serde(rename = "nodeId")]
    pub node_id: Box<super::types::NodeId>,
    #[doc = "New node count."]
    #[serde(rename = "childNodeCount")]
    pub child_node_count: i64,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub enum ChildNodeCountUpdatedMethod {
    #[serde(rename = "DOM.childNodeCountUpdated")]
    ChildNodeCountUpdated,
}
#[doc = "Fired when `Container`'s child node count has changed.\n[childNodeCountUpdated](https://chromedevtools.github.io/devtools-protocol/tot/DOM/#event-childNodeCountUpdated)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct ChildNodeCountUpdated {
    pub method: ChildNodeCountUpdatedMethod,
    pub params: ChildNodeCountUpdatedParams,
}
impl ChildNodeCountUpdated {
    pub const IDENTIFIER: &'static str = "DOM.childNodeCountUpdated";
    pub fn identifier(&self) -> &'static str {
        Self::IDENTIFIER
    }
}
#[doc = "Mirrors `DOMNodeInserted` event.\n[childNodeInserted](https://chromedevtools.github.io/devtools-protocol/tot/DOM/#event-childNodeInserted)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct ChildNodeInsertedParams {
    #[doc = "Id of the node that has changed."]
    #[serde(rename = "parentNodeId")]
    pub parent_node_id: super::types::NodeId,
    #[doc = "Id of the previous sibling."]
    #[serde(rename = "previousNodeId")]
    pub previous_node_id: super::types::NodeId,
    #[doc = "Inserted node data."]
    #[serde(rename = "node")]
    pub node: Box<super::types::Node>,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub enum ChildNodeInsertedMethod {
    #[serde(rename = "DOM.childNodeInserted")]
    ChildNodeInserted,
}
#[doc = "Mirrors `DOMNodeInserted` event.\n[childNodeInserted](https://chromedevtools.github.io/devtools-protocol/tot/DOM/#event-childNodeInserted)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct ChildNodeInserted {
    pub method: ChildNodeInsertedMethod,
    pub params: ChildNodeInsertedParams,
}
impl ChildNodeInserted {
    pub const IDENTIFIER: &'static str = "DOM.childNodeInserted";
    pub fn identifier(&self) -> &'static str {
        Self::IDENTIFIER
    }
}
#[doc = "Mirrors `DOMNodeRemoved` event.\n[childNodeRemoved](https://chromedevtools.github.io/devtools-protocol/tot/DOM/#event-childNodeRemoved)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct ChildNodeRemovedParams {
    #[doc = "Parent id."]
    #[serde(rename = "parentNodeId")]
    pub parent_node_id: super::types::NodeId,
    #[doc = "Id of the node that has been removed."]
    #[serde(rename = "nodeId")]
    pub node_id: Box<super::types::NodeId>,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub enum ChildNodeRemovedMethod {
    #[serde(rename = "DOM.childNodeRemoved")]
    ChildNodeRemoved,
}
#[doc = "Mirrors `DOMNodeRemoved` event.\n[childNodeRemoved](https://chromedevtools.github.io/devtools-protocol/tot/DOM/#event-childNodeRemoved)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct ChildNodeRemoved {
    pub method: ChildNodeRemovedMethod,
    pub params: ChildNodeRemovedParams,
}
impl ChildNodeRemoved {
    pub const IDENTIFIER: &'static str = "DOM.childNodeRemoved";
    pub fn identifier(&self) -> &'static str {
        Self::IDENTIFIER
    }
}
#[doc = "Called when distribution is changed.\n[distributedNodesUpdated](https://chromedevtools.github.io/devtools-protocol/tot/DOM/#event-distributedNodesUpdated)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct DistributedNodesUpdatedParams {
    #[doc = "Insertion point where distributed nodes were updated."]
    #[serde(rename = "insertionPointId")]
    pub insertion_point_id: super::types::NodeId,
    #[doc = "Distributed nodes for given insertion point."]
    #[serde(rename = "distributedNodes")]
    #[serde(skip_serializing_if = "Vec::is_empty")]
    pub distributed_nodes: Vec<super::types::BackendNode>,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub enum DistributedNodesUpdatedMethod {
    #[serde(rename = "DOM.distributedNodesUpdated")]
    DistributedNodesUpdated,
}
#[doc = "Called when distribution is changed.\n[distributedNodesUpdated](https://chromedevtools.github.io/devtools-protocol/tot/DOM/#event-distributedNodesUpdated)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct DistributedNodesUpdated {
    pub method: DistributedNodesUpdatedMethod,
    pub params: DistributedNodesUpdatedParams,
}
impl DistributedNodesUpdated {
    pub const IDENTIFIER: &'static str = "DOM.distributedNodesUpdated";
    pub fn identifier(&self) -> &'static str {
        Self::IDENTIFIER
    }
}
#[doc = "Fired when `Document` has been totally updated. Node ids are no longer valid.\n[documentUpdated](https://chromedevtools.github.io/devtools-protocol/tot/DOM/#event-documentUpdated)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct DocumentUpdatedParams {}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub enum DocumentUpdatedMethod {
    #[serde(rename = "DOM.documentUpdated")]
    DocumentUpdated,
}
#[doc = "Fired when `Document` has been totally updated. Node ids are no longer valid.\n[documentUpdated](https://chromedevtools.github.io/devtools-protocol/tot/DOM/#event-documentUpdated)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct DocumentUpdated {
    pub method: DocumentUpdatedMethod,
    pub params: DocumentUpdatedParams,
}
impl DocumentUpdated {
    pub const IDENTIFIER: &'static str = "DOM.documentUpdated";
    pub fn identifier(&self) -> &'static str {
        Self::IDENTIFIER
    }
}
#[doc = "Fired when `Element`'s inline style is modified via a CSS property modification.\n[inlineStyleInvalidated](https://chromedevtools.github.io/devtools-protocol/tot/DOM/#event-inlineStyleInvalidated)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct InlineStyleInvalidatedParams {
    #[doc = "Ids of the nodes for which the inline styles have been invalidated."]
    #[serde(rename = "nodeIds")]
    #[serde(skip_serializing_if = "Vec::is_empty")]
    pub node_ids: Vec<super::types::NodeId>,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub enum InlineStyleInvalidatedMethod {
    #[serde(rename = "DOM.inlineStyleInvalidated")]
    InlineStyleInvalidated,
}
#[doc = "Fired when `Element`'s inline style is modified via a CSS property modification.\n[inlineStyleInvalidated](https://chromedevtools.github.io/devtools-protocol/tot/DOM/#event-inlineStyleInvalidated)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct InlineStyleInvalidated {
    pub method: InlineStyleInvalidatedMethod,
    pub params: InlineStyleInvalidatedParams,
}
impl InlineStyleInvalidated {
    pub const IDENTIFIER: &'static str = "DOM.inlineStyleInvalidated";
    pub fn identifier(&self) -> &'static str {
        Self::IDENTIFIER
    }
}
#[doc = "Called when a pseudo element is added to an element.\n[pseudoElementAdded](https://chromedevtools.github.io/devtools-protocol/tot/DOM/#event-pseudoElementAdded)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct PseudoElementAddedParams {
    #[doc = "Pseudo element's parent element id."]
    #[serde(rename = "parentId")]
    pub parent_id: super::types::NodeId,
    #[doc = "The added pseudo element."]
    #[serde(rename = "pseudoElement")]
    pub pseudo_element: super::types::Node,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub enum PseudoElementAddedMethod {
    #[serde(rename = "DOM.pseudoElementAdded")]
    PseudoElementAdded,
}
#[doc = "Called when a pseudo element is added to an element.\n[pseudoElementAdded](https://chromedevtools.github.io/devtools-protocol/tot/DOM/#event-pseudoElementAdded)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct PseudoElementAdded {
    pub method: PseudoElementAddedMethod,
    pub params: PseudoElementAddedParams,
}
impl PseudoElementAdded {
    pub const IDENTIFIER: &'static str = "DOM.pseudoElementAdded";
    pub fn identifier(&self) -> &'static str {
        Self::IDENTIFIER
    }
}
#[doc = "Called when top layer elements are changed.\n[topLayerElementsUpdated](https://chromedevtools.github.io/devtools-protocol/tot/DOM/#event-topLayerElementsUpdated)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct TopLayerElementsUpdatedParams {}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub enum TopLayerElementsUpdatedMethod {
    #[serde(rename = "DOM.topLayerElementsUpdated")]
    TopLayerElementsUpdated,
}
#[doc = "Called when top layer elements are changed.\n[topLayerElementsUpdated](https://chromedevtools.github.io/devtools-protocol/tot/DOM/#event-topLayerElementsUpdated)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct TopLayerElementsUpdated {
    pub method: TopLayerElementsUpdatedMethod,
    pub params: TopLayerElementsUpdatedParams,
}
impl TopLayerElementsUpdated {
    pub const IDENTIFIER: &'static str = "DOM.topLayerElementsUpdated";
    pub fn identifier(&self) -> &'static str {
        Self::IDENTIFIER
    }
}
#[doc = "Fired when a node's scrollability state changes.\n[scrollableFlagUpdated](https://chromedevtools.github.io/devtools-protocol/tot/DOM/#event-scrollableFlagUpdated)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct ScrollableFlagUpdatedParams {
    #[doc = "The id of the node."]
    #[serde(rename = "nodeId")]
    pub node_id: Box<super::types::NodeId>,
    #[doc = "If the node is scrollable."]
    #[serde(rename = "isScrollable")]
    pub is_scrollable: bool,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub enum ScrollableFlagUpdatedMethod {
    #[serde(rename = "DOM.scrollableFlagUpdated")]
    ScrollableFlagUpdated,
}
#[doc = "Fired when a node's scrollability state changes.\n[scrollableFlagUpdated](https://chromedevtools.github.io/devtools-protocol/tot/DOM/#event-scrollableFlagUpdated)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct ScrollableFlagUpdated {
    pub method: ScrollableFlagUpdatedMethod,
    pub params: ScrollableFlagUpdatedParams,
}
impl ScrollableFlagUpdated {
    pub const IDENTIFIER: &'static str = "DOM.scrollableFlagUpdated";
    pub fn identifier(&self) -> &'static str {
        Self::IDENTIFIER
    }
}
#[doc = "Fired when a node's ad related state changes.\n[adRelatedStateUpdated](https://chromedevtools.github.io/devtools-protocol/tot/DOM/#event-adRelatedStateUpdated)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct AdRelatedStateUpdatedParams {
    #[doc = "The id of the node."]
    #[serde(rename = "nodeId")]
    pub node_id: Box<super::types::NodeId>,
    #[doc = "If the node is ad related."]
    #[serde(rename = "isAdRelated")]
    pub is_ad_related: bool,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub enum AdRelatedStateUpdatedMethod {
    #[serde(rename = "DOM.adRelatedStateUpdated")]
    AdRelatedStateUpdated,
}
#[doc = "Fired when a node's ad related state changes.\n[adRelatedStateUpdated](https://chromedevtools.github.io/devtools-protocol/tot/DOM/#event-adRelatedStateUpdated)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct AdRelatedStateUpdated {
    pub method: AdRelatedStateUpdatedMethod,
    pub params: AdRelatedStateUpdatedParams,
}
impl AdRelatedStateUpdated {
    pub const IDENTIFIER: &'static str = "DOM.adRelatedStateUpdated";
    pub fn identifier(&self) -> &'static str {
        Self::IDENTIFIER
    }
}
#[doc = "Fired when a node's starting styles changes.\n[affectedByStartingStylesFlagUpdated](https://chromedevtools.github.io/devtools-protocol/tot/DOM/#event-affectedByStartingStylesFlagUpdated)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct AffectedByStartingStylesFlagUpdatedParams {
    #[doc = "The id of the node."]
    #[serde(rename = "nodeId")]
    pub node_id: Box<super::types::NodeId>,
    #[doc = "If the node has starting styles."]
    #[serde(rename = "affectedByStartingStyles")]
    pub affected_by_starting_styles: bool,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub enum AffectedByStartingStylesFlagUpdatedMethod {
    #[serde(rename = "DOM.affectedByStartingStylesFlagUpdated")]
    AffectedByStartingStylesFlagUpdated,
}
#[doc = "Fired when a node's starting styles changes.\n[affectedByStartingStylesFlagUpdated](https://chromedevtools.github.io/devtools-protocol/tot/DOM/#event-affectedByStartingStylesFlagUpdated)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct AffectedByStartingStylesFlagUpdated {
    pub method: AffectedByStartingStylesFlagUpdatedMethod,
    pub params: AffectedByStartingStylesFlagUpdatedParams,
}
impl AffectedByStartingStylesFlagUpdated {
    pub const IDENTIFIER: &'static str = "DOM.affectedByStartingStylesFlagUpdated";
    pub fn identifier(&self) -> &'static str {
        Self::IDENTIFIER
    }
}
#[doc = "Called when a pseudo element is removed from an element.\n[pseudoElementRemoved](https://chromedevtools.github.io/devtools-protocol/tot/DOM/#event-pseudoElementRemoved)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct PseudoElementRemovedParams {
    #[doc = "Pseudo element's parent element id."]
    #[serde(rename = "parentId")]
    pub parent_id: super::types::NodeId,
    #[doc = "The removed pseudo element id."]
    #[serde(rename = "pseudoElementId")]
    pub pseudo_element_id: super::types::NodeId,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub enum PseudoElementRemovedMethod {
    #[serde(rename = "DOM.pseudoElementRemoved")]
    PseudoElementRemoved,
}
#[doc = "Called when a pseudo element is removed from an element.\n[pseudoElementRemoved](https://chromedevtools.github.io/devtools-protocol/tot/DOM/#event-pseudoElementRemoved)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct PseudoElementRemoved {
    pub method: PseudoElementRemovedMethod,
    pub params: PseudoElementRemovedParams,
}
impl PseudoElementRemoved {
    pub const IDENTIFIER: &'static str = "DOM.pseudoElementRemoved";
    pub fn identifier(&self) -> &'static str {
        Self::IDENTIFIER
    }
}
#[doc = "Fired when backend wants to provide client with the missing DOM structure. This happens upon\nmost of the calls requesting node ids.\n[setChildNodes](https://chromedevtools.github.io/devtools-protocol/tot/DOM/#event-setChildNodes)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct SetChildNodesParams {
    #[doc = "Parent node id to populate with children."]
    #[serde(rename = "parentId")]
    pub parent_id: super::types::NodeId,
    #[doc = "Child nodes array."]
    #[serde(rename = "nodes")]
    #[serde(skip_serializing_if = "Vec::is_empty")]
    pub nodes: Vec<super::types::Node>,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub enum SetChildNodesMethod {
    #[serde(rename = "DOM.setChildNodes")]
    SetChildNodes,
}
#[doc = "Fired when backend wants to provide client with the missing DOM structure. This happens upon\nmost of the calls requesting node ids.\n[setChildNodes](https://chromedevtools.github.io/devtools-protocol/tot/DOM/#event-setChildNodes)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct SetChildNodes {
    pub method: SetChildNodesMethod,
    pub params: SetChildNodesParams,
}
impl SetChildNodes {
    pub const IDENTIFIER: &'static str = "DOM.setChildNodes";
    pub fn identifier(&self) -> &'static str {
        Self::IDENTIFIER
    }
}
#[doc = "Called when shadow root is popped from the element.\n[shadowRootPopped](https://chromedevtools.github.io/devtools-protocol/tot/DOM/#event-shadowRootPopped)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct ShadowRootPoppedParams {
    #[doc = "Host element id."]
    #[serde(rename = "hostId")]
    pub host_id: super::types::NodeId,
    #[doc = "Shadow root id."]
    #[serde(rename = "rootId")]
    pub root_id: super::types::NodeId,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub enum ShadowRootPoppedMethod {
    #[serde(rename = "DOM.shadowRootPopped")]
    ShadowRootPopped,
}
#[doc = "Called when shadow root is popped from the element.\n[shadowRootPopped](https://chromedevtools.github.io/devtools-protocol/tot/DOM/#event-shadowRootPopped)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct ShadowRootPopped {
    pub method: ShadowRootPoppedMethod,
    pub params: ShadowRootPoppedParams,
}
impl ShadowRootPopped {
    pub const IDENTIFIER: &'static str = "DOM.shadowRootPopped";
    pub fn identifier(&self) -> &'static str {
        Self::IDENTIFIER
    }
}
#[doc = "Called when shadow root is pushed into the element.\n[shadowRootPushed](https://chromedevtools.github.io/devtools-protocol/tot/DOM/#event-shadowRootPushed)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct ShadowRootPushedParams {
    #[doc = "Host element id."]
    #[serde(rename = "hostId")]
    pub host_id: super::types::NodeId,
    #[doc = "Shadow root."]
    #[serde(rename = "root")]
    pub root: super::types::Node,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub enum ShadowRootPushedMethod {
    #[serde(rename = "DOM.shadowRootPushed")]
    ShadowRootPushed,
}
#[doc = "Called when shadow root is pushed into the element.\n[shadowRootPushed](https://chromedevtools.github.io/devtools-protocol/tot/DOM/#event-shadowRootPushed)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct ShadowRootPushed {
    pub method: ShadowRootPushedMethod,
    pub params: ShadowRootPushedParams,
}
impl ShadowRootPushed {
    pub const IDENTIFIER: &'static str = "DOM.shadowRootPushed";
    pub fn identifier(&self) -> &'static str {
        Self::IDENTIFIER
    }
}
group_enum ! (DomEvents { AttributeModified (AttributeModified) , AdoptedStyleSheetsModified (AdoptedStyleSheetsModified) , AttributeRemoved (AttributeRemoved) , CharacterDataModified (CharacterDataModified) , ChildNodeCountUpdated (ChildNodeCountUpdated) , ChildNodeInserted (ChildNodeInserted) , ChildNodeRemoved (ChildNodeRemoved) , DistributedNodesUpdated (DistributedNodesUpdated) , DocumentUpdated (DocumentUpdated) , InlineStyleInvalidated (InlineStyleInvalidated) , PseudoElementAdded (PseudoElementAdded) , TopLayerElementsUpdated (TopLayerElementsUpdated) , ScrollableFlagUpdated (ScrollableFlagUpdated) , AdRelatedStateUpdated (AdRelatedStateUpdated) , AffectedByStartingStylesFlagUpdated (AffectedByStartingStylesFlagUpdated) , PseudoElementRemoved (PseudoElementRemoved) , SetChildNodes (SetChildNodes) , ShadowRootPopped (ShadowRootPopped) , ShadowRootPushed (ShadowRootPushed) } + identifiable);