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
use serde::{Deserialize, Serialize};
#[doc = "A cache's contents have been modified.\n[cacheStorageContentUpdated](https://chromedevtools.github.io/devtools-protocol/tot/Storage/#event-cacheStorageContentUpdated)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct CacheStorageContentUpdatedParams {
    #[doc = "Origin to update."]
    #[serde(rename = "origin")]
    pub origin: String,
    #[doc = "Storage key to update."]
    #[serde(rename = "storageKey")]
    pub storage_key: String,
    #[doc = "Storage bucket to update."]
    #[serde(rename = "bucketId")]
    pub bucket_id: String,
    #[doc = "Name of cache in origin."]
    #[serde(rename = "cacheName")]
    pub cache_name: String,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub enum CacheStorageContentUpdatedMethod {
    #[serde(rename = "Storage.cacheStorageContentUpdated")]
    CacheStorageContentUpdated,
}
#[doc = "A cache's contents have been modified.\n[cacheStorageContentUpdated](https://chromedevtools.github.io/devtools-protocol/tot/Storage/#event-cacheStorageContentUpdated)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct CacheStorageContentUpdated {
    pub method: CacheStorageContentUpdatedMethod,
    pub params: CacheStorageContentUpdatedParams,
}
impl CacheStorageContentUpdated {
    pub const IDENTIFIER: &'static str = "Storage.cacheStorageContentUpdated";
    pub fn identifier(&self) -> &'static str {
        Self::IDENTIFIER
    }
}
#[doc = "A cache has been added/deleted.\n[cacheStorageListUpdated](https://chromedevtools.github.io/devtools-protocol/tot/Storage/#event-cacheStorageListUpdated)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct CacheStorageListUpdatedParams {
    #[doc = "Origin to update."]
    #[serde(rename = "origin")]
    pub origin: String,
    #[doc = "Storage key to update."]
    #[serde(rename = "storageKey")]
    pub storage_key: String,
    #[doc = "Storage bucket to update."]
    #[serde(rename = "bucketId")]
    pub bucket_id: String,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub enum CacheStorageListUpdatedMethod {
    #[serde(rename = "Storage.cacheStorageListUpdated")]
    CacheStorageListUpdated,
}
#[doc = "A cache has been added/deleted.\n[cacheStorageListUpdated](https://chromedevtools.github.io/devtools-protocol/tot/Storage/#event-cacheStorageListUpdated)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct CacheStorageListUpdated {
    pub method: CacheStorageListUpdatedMethod,
    pub params: CacheStorageListUpdatedParams,
}
impl CacheStorageListUpdated {
    pub const IDENTIFIER: &'static str = "Storage.cacheStorageListUpdated";
    pub fn identifier(&self) -> &'static str {
        Self::IDENTIFIER
    }
}
#[doc = "The origin's IndexedDB object store has been modified.\n[indexedDBContentUpdated](https://chromedevtools.github.io/devtools-protocol/tot/Storage/#event-indexedDBContentUpdated)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct IndexedDbContentUpdatedParams {
    #[doc = "Origin to update."]
    #[serde(rename = "origin")]
    pub origin: String,
    #[doc = "Storage key to update."]
    #[serde(rename = "storageKey")]
    pub storage_key: String,
    #[doc = "Storage bucket to update."]
    #[serde(rename = "bucketId")]
    pub bucket_id: String,
    #[doc = "Database to update."]
    #[serde(rename = "databaseName")]
    pub database_name: String,
    #[doc = "ObjectStore to update."]
    #[serde(rename = "objectStoreName")]
    pub object_store_name: String,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub enum IndexedDbContentUpdatedMethod {
    #[serde(rename = "Storage.indexedDBContentUpdated")]
    IndexedDbContentUpdated,
}
#[doc = "The origin's IndexedDB object store has been modified.\n[indexedDBContentUpdated](https://chromedevtools.github.io/devtools-protocol/tot/Storage/#event-indexedDBContentUpdated)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct IndexedDbContentUpdated {
    pub method: IndexedDbContentUpdatedMethod,
    pub params: IndexedDbContentUpdatedParams,
}
impl IndexedDbContentUpdated {
    pub const IDENTIFIER: &'static str = "Storage.indexedDBContentUpdated";
    pub fn identifier(&self) -> &'static str {
        Self::IDENTIFIER
    }
}
#[doc = "The origin's IndexedDB database list has been modified.\n[indexedDBListUpdated](https://chromedevtools.github.io/devtools-protocol/tot/Storage/#event-indexedDBListUpdated)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct IndexedDbListUpdatedParams {
    #[doc = "Origin to update."]
    #[serde(rename = "origin")]
    pub origin: String,
    #[doc = "Storage key to update."]
    #[serde(rename = "storageKey")]
    pub storage_key: String,
    #[doc = "Storage bucket to update."]
    #[serde(rename = "bucketId")]
    pub bucket_id: String,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub enum IndexedDbListUpdatedMethod {
    #[serde(rename = "Storage.indexedDBListUpdated")]
    IndexedDbListUpdated,
}
#[doc = "The origin's IndexedDB database list has been modified.\n[indexedDBListUpdated](https://chromedevtools.github.io/devtools-protocol/tot/Storage/#event-indexedDBListUpdated)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct IndexedDbListUpdated {
    pub method: IndexedDbListUpdatedMethod,
    pub params: IndexedDbListUpdatedParams,
}
impl IndexedDbListUpdated {
    pub const IDENTIFIER: &'static str = "Storage.indexedDBListUpdated";
    pub fn identifier(&self) -> &'static str {
        Self::IDENTIFIER
    }
}
#[doc = "One of the interest groups was accessed. Note that these events are global\nto all targets sharing an interest group store.\n[interestGroupAccessed](https://chromedevtools.github.io/devtools-protocol/tot/Storage/#event-interestGroupAccessed)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct InterestGroupAccessedParams {
    #[serde(rename = "accessTime")]
    pub access_time: crate::browser_protocol::network::types::TimeSinceEpoch,
    #[serde(rename = "type")]
    pub r#type: super::types::InterestGroupAccessType,
    #[serde(rename = "ownerOrigin")]
    pub owner_origin: String,
    #[serde(rename = "name")]
    pub name: String,
    #[doc = "For topLevelBid/topLevelAdditionalBid, and when appropriate,\nwin and additionalBidWin"]
    #[serde(rename = "componentSellerOrigin")]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    pub component_seller_origin: Option<String>,
    #[doc = "For bid or somethingBid event, if done locally and not on a server."]
    #[serde(rename = "bid")]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    pub bid: Option<f64>,
    #[serde(rename = "bidCurrency")]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    pub bid_currency: Option<String>,
    #[doc = "For non-global events --- links to interestGroupAuctionEvent"]
    #[serde(rename = "uniqueAuctionId")]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    pub unique_auction_id: Option<super::types::InterestGroupAuctionId>,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub enum InterestGroupAccessedMethod {
    #[serde(rename = "Storage.interestGroupAccessed")]
    InterestGroupAccessed,
}
#[doc = "One of the interest groups was accessed. Note that these events are global\nto all targets sharing an interest group store.\n[interestGroupAccessed](https://chromedevtools.github.io/devtools-protocol/tot/Storage/#event-interestGroupAccessed)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct InterestGroupAccessed {
    pub method: InterestGroupAccessedMethod,
    pub params: InterestGroupAccessedParams,
}
impl InterestGroupAccessed {
    pub const IDENTIFIER: &'static str = "Storage.interestGroupAccessed";
    pub fn identifier(&self) -> &'static str {
        Self::IDENTIFIER
    }
}
#[doc = "An auction involving interest groups is taking place. These events are\ntarget-specific.\n[interestGroupAuctionEventOccurred](https://chromedevtools.github.io/devtools-protocol/tot/Storage/#event-interestGroupAuctionEventOccurred)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct InterestGroupAuctionEventOccurredParams {
    #[serde(rename = "eventTime")]
    pub event_time: crate::browser_protocol::network::types::TimeSinceEpoch,
    #[serde(rename = "type")]
    pub r#type: super::types::InterestGroupAuctionEventType,
    #[serde(rename = "uniqueAuctionId")]
    pub unique_auction_id: super::types::InterestGroupAuctionId,
    #[doc = "Set for child auctions."]
    #[serde(rename = "parentAuctionId")]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    pub parent_auction_id: Option<super::types::InterestGroupAuctionId>,
    #[doc = "Set for started and configResolved"]
    #[serde(rename = "auctionConfig")]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    pub auction_config: Option<serde_json::Value>,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub enum InterestGroupAuctionEventOccurredMethod {
    #[serde(rename = "Storage.interestGroupAuctionEventOccurred")]
    InterestGroupAuctionEventOccurred,
}
#[doc = "An auction involving interest groups is taking place. These events are\ntarget-specific.\n[interestGroupAuctionEventOccurred](https://chromedevtools.github.io/devtools-protocol/tot/Storage/#event-interestGroupAuctionEventOccurred)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct InterestGroupAuctionEventOccurred {
    pub method: InterestGroupAuctionEventOccurredMethod,
    pub params: InterestGroupAuctionEventOccurredParams,
}
impl InterestGroupAuctionEventOccurred {
    pub const IDENTIFIER: &'static str = "Storage.interestGroupAuctionEventOccurred";
    pub fn identifier(&self) -> &'static str {
        Self::IDENTIFIER
    }
}
#[doc = "Specifies which auctions a particular network fetch may be related to, and\nin what role. Note that it is not ordered with respect to\nNetwork.requestWillBeSent (but will happen before loadingFinished\nloadingFailed).\n[interestGroupAuctionNetworkRequestCreated](https://chromedevtools.github.io/devtools-protocol/tot/Storage/#event-interestGroupAuctionNetworkRequestCreated)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct InterestGroupAuctionNetworkRequestCreatedParams {
    #[serde(rename = "type")]
    pub r#type: super::types::InterestGroupAuctionFetchType,
    #[serde(rename = "requestId")]
    pub request_id: crate::browser_protocol::network::types::RequestId,
    #[doc = "This is the set of the auctions using the worklet that issued this\nrequest.  In the case of trusted signals, it's possible that only some of\nthem actually care about the keys being queried."]
    #[serde(rename = "auctions")]
    #[serde(skip_serializing_if = "Vec::is_empty")]
    pub auctions: Vec<super::types::InterestGroupAuctionId>,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub enum InterestGroupAuctionNetworkRequestCreatedMethod {
    #[serde(rename = "Storage.interestGroupAuctionNetworkRequestCreated")]
    InterestGroupAuctionNetworkRequestCreated,
}
#[doc = "Specifies which auctions a particular network fetch may be related to, and\nin what role. Note that it is not ordered with respect to\nNetwork.requestWillBeSent (but will happen before loadingFinished\nloadingFailed).\n[interestGroupAuctionNetworkRequestCreated](https://chromedevtools.github.io/devtools-protocol/tot/Storage/#event-interestGroupAuctionNetworkRequestCreated)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct InterestGroupAuctionNetworkRequestCreated {
    pub method: InterestGroupAuctionNetworkRequestCreatedMethod,
    pub params: InterestGroupAuctionNetworkRequestCreatedParams,
}
impl InterestGroupAuctionNetworkRequestCreated {
    pub const IDENTIFIER: &'static str = "Storage.interestGroupAuctionNetworkRequestCreated";
    pub fn identifier(&self) -> &'static str {
        Self::IDENTIFIER
    }
}
#[doc = "Shared storage was accessed by the associated page.\nThe following parameters are included in all events.\n[sharedStorageAccessed](https://chromedevtools.github.io/devtools-protocol/tot/Storage/#event-sharedStorageAccessed)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct SharedStorageAccessedParams {
    #[doc = "Time of the access."]
    #[serde(rename = "accessTime")]
    pub access_time: crate::browser_protocol::network::types::TimeSinceEpoch,
    #[doc = "Enum value indicating the access scope."]
    #[serde(rename = "scope")]
    pub scope: super::types::SharedStorageAccessScope,
    #[doc = "Enum value indicating the Shared Storage API method invoked."]
    #[serde(rename = "method")]
    pub method: super::types::SharedStorageAccessMethod,
    #[doc = "DevTools Frame Token for the primary frame tree's root."]
    #[serde(rename = "mainFrameId")]
    pub main_frame_id: crate::browser_protocol::page::types::FrameId,
    #[doc = "Serialization of the origin owning the Shared Storage data."]
    #[serde(rename = "ownerOrigin")]
    pub owner_origin: String,
    #[doc = "Serialization of the site owning the Shared Storage data."]
    #[serde(rename = "ownerSite")]
    pub owner_site: String,
    #[doc = "The sub-parameters wrapped by `params` are all optional and their\npresence/absence depends on `type`."]
    #[serde(rename = "params")]
    pub params: super::types::SharedStorageAccessParams,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub enum SharedStorageAccessedMethod {
    #[serde(rename = "Storage.sharedStorageAccessed")]
    SharedStorageAccessed,
}
#[doc = "Shared storage was accessed by the associated page.\nThe following parameters are included in all events.\n[sharedStorageAccessed](https://chromedevtools.github.io/devtools-protocol/tot/Storage/#event-sharedStorageAccessed)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct SharedStorageAccessed {
    pub method: SharedStorageAccessedMethod,
    pub params: SharedStorageAccessedParams,
}
impl SharedStorageAccessed {
    pub const IDENTIFIER: &'static str = "Storage.sharedStorageAccessed";
    pub fn identifier(&self) -> &'static str {
        Self::IDENTIFIER
    }
}
#[doc = "A shared storage run or selectURL operation finished its execution.\nThe following parameters are included in all events.\n[sharedStorageWorkletOperationExecutionFinished](https://chromedevtools.github.io/devtools-protocol/tot/Storage/#event-sharedStorageWorkletOperationExecutionFinished)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct SharedStorageWorkletOperationExecutionFinishedParams {
    #[doc = "Time that the operation finished."]
    #[serde(rename = "finishedTime")]
    pub finished_time: crate::browser_protocol::network::types::TimeSinceEpoch,
    #[doc = "Time, in microseconds, from start of shared storage JS API call until\nend of operation execution in the worklet."]
    #[serde(rename = "executionTime")]
    pub execution_time: i64,
    #[doc = "Enum value indicating the Shared Storage API method invoked."]
    #[serde(rename = "method")]
    pub method: super::types::SharedStorageAccessMethod,
    #[doc = "ID of the operation call."]
    #[serde(rename = "operationId")]
    pub operation_id: String,
    #[doc = "Hex representation of the DevTools token used as the TargetID for the\nassociated shared storage worklet."]
    #[serde(rename = "workletTargetId")]
    pub worklet_target_id: crate::browser_protocol::target::types::TargetId,
    #[doc = "DevTools Frame Token for the primary frame tree's root."]
    #[serde(rename = "mainFrameId")]
    pub main_frame_id: crate::browser_protocol::page::types::FrameId,
    #[doc = "Serialization of the origin owning the Shared Storage data."]
    #[serde(rename = "ownerOrigin")]
    pub owner_origin: String,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub enum SharedStorageWorkletOperationExecutionFinishedMethod {
    #[serde(rename = "Storage.sharedStorageWorkletOperationExecutionFinished")]
    SharedStorageWorkletOperationExecutionFinished,
}
#[doc = "A shared storage run or selectURL operation finished its execution.\nThe following parameters are included in all events.\n[sharedStorageWorkletOperationExecutionFinished](https://chromedevtools.github.io/devtools-protocol/tot/Storage/#event-sharedStorageWorkletOperationExecutionFinished)"]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct SharedStorageWorkletOperationExecutionFinished {
    pub method: SharedStorageWorkletOperationExecutionFinishedMethod,
    pub params: SharedStorageWorkletOperationExecutionFinishedParams,
}
impl SharedStorageWorkletOperationExecutionFinished {
    pub const IDENTIFIER: &'static str = "Storage.sharedStorageWorkletOperationExecutionFinished";
    pub fn identifier(&self) -> &'static str {
        Self::IDENTIFIER
    }
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct StorageBucketCreatedOrUpdatedParams {
    #[serde(rename = "bucketInfo")]
    pub bucket_info: super::types::StorageBucketInfo,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub enum StorageBucketCreatedOrUpdatedMethod {
    #[serde(rename = "Storage.storageBucketCreatedOrUpdated")]
    StorageBucketCreatedOrUpdated,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct StorageBucketCreatedOrUpdated {
    pub method: StorageBucketCreatedOrUpdatedMethod,
    pub params: StorageBucketCreatedOrUpdatedParams,
}
impl StorageBucketCreatedOrUpdated {
    pub const IDENTIFIER: &'static str = "Storage.storageBucketCreatedOrUpdated";
    pub fn identifier(&self) -> &'static str {
        Self::IDENTIFIER
    }
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct StorageBucketDeletedParams {
    #[serde(rename = "bucketId")]
    pub bucket_id: String,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub enum StorageBucketDeletedMethod {
    #[serde(rename = "Storage.storageBucketDeleted")]
    StorageBucketDeleted,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct StorageBucketDeleted {
    pub method: StorageBucketDeletedMethod,
    pub params: StorageBucketDeletedParams,
}
impl StorageBucketDeleted {
    pub const IDENTIFIER: &'static str = "Storage.storageBucketDeleted";
    pub fn identifier(&self) -> &'static str {
        Self::IDENTIFIER
    }
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct AttributionReportingSourceRegisteredParams {
    #[serde(rename = "registration")]
    pub registration: super::types::AttributionReportingSourceRegistration,
    #[serde(rename = "result")]
    pub result: super::types::AttributionReportingSourceRegistrationResult,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub enum AttributionReportingSourceRegisteredMethod {
    #[serde(rename = "Storage.attributionReportingSourceRegistered")]
    AttributionReportingSourceRegistered,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct AttributionReportingSourceRegistered {
    pub method: AttributionReportingSourceRegisteredMethod,
    pub params: AttributionReportingSourceRegisteredParams,
}
impl AttributionReportingSourceRegistered {
    pub const IDENTIFIER: &'static str = "Storage.attributionReportingSourceRegistered";
    pub fn identifier(&self) -> &'static str {
        Self::IDENTIFIER
    }
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct AttributionReportingTriggerRegisteredParams {
    #[serde(rename = "registration")]
    pub registration: super::types::AttributionReportingTriggerRegistration,
    #[serde(rename = "eventLevel")]
    pub event_level: super::types::AttributionReportingEventLevelResult,
    #[serde(rename = "aggregatable")]
    pub aggregatable: super::types::AttributionReportingAggregatableResult,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub enum AttributionReportingTriggerRegisteredMethod {
    #[serde(rename = "Storage.attributionReportingTriggerRegistered")]
    AttributionReportingTriggerRegistered,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct AttributionReportingTriggerRegistered {
    pub method: AttributionReportingTriggerRegisteredMethod,
    pub params: AttributionReportingTriggerRegisteredParams,
}
impl AttributionReportingTriggerRegistered {
    pub const IDENTIFIER: &'static str = "Storage.attributionReportingTriggerRegistered";
    pub fn identifier(&self) -> &'static str {
        Self::IDENTIFIER
    }
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct AttributionReportingReportSentParams {
    #[serde(rename = "url")]
    pub url: String,
    #[serde(rename = "body")]
    pub body: serde_json::Value,
    #[serde(rename = "result")]
    pub result: super::types::AttributionReportingReportResult,
    #[doc = "If result is `sent`, populated with net/HTTP status."]
    #[serde(rename = "netError")]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    pub net_error: Option<i64>,
    #[serde(rename = "netErrorName")]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    pub net_error_name: Option<String>,
    #[serde(rename = "httpStatusCode")]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    pub http_status_code: Option<i64>,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub enum AttributionReportingReportSentMethod {
    #[serde(rename = "Storage.attributionReportingReportSent")]
    AttributionReportingReportSent,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct AttributionReportingReportSent {
    pub method: AttributionReportingReportSentMethod,
    pub params: AttributionReportingReportSentParams,
}
impl AttributionReportingReportSent {
    pub const IDENTIFIER: &'static str = "Storage.attributionReportingReportSent";
    pub fn identifier(&self) -> &'static str {
        Self::IDENTIFIER
    }
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct AttributionReportingVerboseDebugReportSentParams {
    #[serde(rename = "url")]
    pub url: String,
    #[serde(rename = "body")]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    pub body: Option<Vec<serde_json::Value>>,
    #[serde(rename = "netError")]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    pub net_error: Option<i64>,
    #[serde(rename = "netErrorName")]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    pub net_error_name: Option<String>,
    #[serde(rename = "httpStatusCode")]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    pub http_status_code: Option<i64>,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub enum AttributionReportingVerboseDebugReportSentMethod {
    #[serde(rename = "Storage.attributionReportingVerboseDebugReportSent")]
    AttributionReportingVerboseDebugReportSent,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct AttributionReportingVerboseDebugReportSent {
    pub method: AttributionReportingVerboseDebugReportSentMethod,
    pub params: AttributionReportingVerboseDebugReportSentParams,
}
impl AttributionReportingVerboseDebugReportSent {
    pub const IDENTIFIER: &'static str = "Storage.attributionReportingVerboseDebugReportSent";
    pub fn identifier(&self) -> &'static str {
        Self::IDENTIFIER
    }
}
group_enum ! (StorageEvents { CacheStorageContentUpdated (CacheStorageContentUpdated) , CacheStorageListUpdated (CacheStorageListUpdated) , IndexedDbContentUpdated (IndexedDbContentUpdated) , IndexedDbListUpdated (IndexedDbListUpdated) , InterestGroupAccessed (InterestGroupAccessed) , InterestGroupAuctionEventOccurred (InterestGroupAuctionEventOccurred) , InterestGroupAuctionNetworkRequestCreated (InterestGroupAuctionNetworkRequestCreated) , SharedStorageAccessed (SharedStorageAccessed) , SharedStorageWorkletOperationExecutionFinished (SharedStorageWorkletOperationExecutionFinished) , StorageBucketCreatedOrUpdated (StorageBucketCreatedOrUpdated) , StorageBucketDeleted (StorageBucketDeleted) , AttributionReportingSourceRegistered (AttributionReportingSourceRegistered) , AttributionReportingTriggerRegistered (AttributionReportingTriggerRegistered) , AttributionReportingReportSent (AttributionReportingReportSent) , AttributionReportingVerboseDebugReportSent (AttributionReportingVerboseDebugReportSent) } + identifiable);