1use serde::{Deserialize, Serialize};
2#[doc = "A cache's contents have been modified.\n[cacheStorageContentUpdated](https://chromedevtools.github.io/devtools-protocol/tot/Storage/#event-cacheStorageContentUpdated)"]
3#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
4pub struct CacheStorageContentUpdatedParams {
5 #[doc = "Origin to update."]
6 #[serde(rename = "origin")]
7 pub origin: String,
8 #[doc = "Storage key to update."]
9 #[serde(rename = "storageKey")]
10 pub storage_key: String,
11 #[doc = "Storage bucket to update."]
12 #[serde(rename = "bucketId")]
13 pub bucket_id: String,
14 #[doc = "Name of cache in origin."]
15 #[serde(rename = "cacheName")]
16 pub cache_name: String,
17}
18#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
19pub enum CacheStorageContentUpdatedMethod {
20 #[serde(rename = "Storage.cacheStorageContentUpdated")]
21 CacheStorageContentUpdated,
22}
23#[doc = "A cache's contents have been modified.\n[cacheStorageContentUpdated](https://chromedevtools.github.io/devtools-protocol/tot/Storage/#event-cacheStorageContentUpdated)"]
24#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
25pub struct CacheStorageContentUpdated {
26 pub method: CacheStorageContentUpdatedMethod,
27 pub params: CacheStorageContentUpdatedParams,
28}
29impl CacheStorageContentUpdated {
30 pub const IDENTIFIER: &'static str = "Storage.cacheStorageContentUpdated";
31 pub fn identifier(&self) -> &'static str {
32 Self::IDENTIFIER
33 }
34}
35#[doc = "A cache has been added/deleted.\n[cacheStorageListUpdated](https://chromedevtools.github.io/devtools-protocol/tot/Storage/#event-cacheStorageListUpdated)"]
36#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
37pub struct CacheStorageListUpdatedParams {
38 #[doc = "Origin to update."]
39 #[serde(rename = "origin")]
40 pub origin: String,
41 #[doc = "Storage key to update."]
42 #[serde(rename = "storageKey")]
43 pub storage_key: String,
44 #[doc = "Storage bucket to update."]
45 #[serde(rename = "bucketId")]
46 pub bucket_id: String,
47}
48#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
49pub enum CacheStorageListUpdatedMethod {
50 #[serde(rename = "Storage.cacheStorageListUpdated")]
51 CacheStorageListUpdated,
52}
53#[doc = "A cache has been added/deleted.\n[cacheStorageListUpdated](https://chromedevtools.github.io/devtools-protocol/tot/Storage/#event-cacheStorageListUpdated)"]
54#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
55pub struct CacheStorageListUpdated {
56 pub method: CacheStorageListUpdatedMethod,
57 pub params: CacheStorageListUpdatedParams,
58}
59impl CacheStorageListUpdated {
60 pub const IDENTIFIER: &'static str = "Storage.cacheStorageListUpdated";
61 pub fn identifier(&self) -> &'static str {
62 Self::IDENTIFIER
63 }
64}
65#[doc = "The origin's IndexedDB object store has been modified.\n[indexedDBContentUpdated](https://chromedevtools.github.io/devtools-protocol/tot/Storage/#event-indexedDBContentUpdated)"]
66#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
67pub struct IndexedDbContentUpdatedParams {
68 #[doc = "Origin to update."]
69 #[serde(rename = "origin")]
70 pub origin: String,
71 #[doc = "Storage key to update."]
72 #[serde(rename = "storageKey")]
73 pub storage_key: String,
74 #[doc = "Storage bucket to update."]
75 #[serde(rename = "bucketId")]
76 pub bucket_id: String,
77 #[doc = "Database to update."]
78 #[serde(rename = "databaseName")]
79 pub database_name: String,
80 #[doc = "ObjectStore to update."]
81 #[serde(rename = "objectStoreName")]
82 pub object_store_name: String,
83}
84#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
85pub enum IndexedDbContentUpdatedMethod {
86 #[serde(rename = "Storage.indexedDBContentUpdated")]
87 IndexedDbContentUpdated,
88}
89#[doc = "The origin's IndexedDB object store has been modified.\n[indexedDBContentUpdated](https://chromedevtools.github.io/devtools-protocol/tot/Storage/#event-indexedDBContentUpdated)"]
90#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
91pub struct IndexedDbContentUpdated {
92 pub method: IndexedDbContentUpdatedMethod,
93 pub params: IndexedDbContentUpdatedParams,
94}
95impl IndexedDbContentUpdated {
96 pub const IDENTIFIER: &'static str = "Storage.indexedDBContentUpdated";
97 pub fn identifier(&self) -> &'static str {
98 Self::IDENTIFIER
99 }
100}
101#[doc = "The origin's IndexedDB database list has been modified.\n[indexedDBListUpdated](https://chromedevtools.github.io/devtools-protocol/tot/Storage/#event-indexedDBListUpdated)"]
102#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
103pub struct IndexedDbListUpdatedParams {
104 #[doc = "Origin to update."]
105 #[serde(rename = "origin")]
106 pub origin: String,
107 #[doc = "Storage key to update."]
108 #[serde(rename = "storageKey")]
109 pub storage_key: String,
110 #[doc = "Storage bucket to update."]
111 #[serde(rename = "bucketId")]
112 pub bucket_id: String,
113}
114#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
115pub enum IndexedDbListUpdatedMethod {
116 #[serde(rename = "Storage.indexedDBListUpdated")]
117 IndexedDbListUpdated,
118}
119#[doc = "The origin's IndexedDB database list has been modified.\n[indexedDBListUpdated](https://chromedevtools.github.io/devtools-protocol/tot/Storage/#event-indexedDBListUpdated)"]
120#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
121pub struct IndexedDbListUpdated {
122 pub method: IndexedDbListUpdatedMethod,
123 pub params: IndexedDbListUpdatedParams,
124}
125impl IndexedDbListUpdated {
126 pub const IDENTIFIER: &'static str = "Storage.indexedDBListUpdated";
127 pub fn identifier(&self) -> &'static str {
128 Self::IDENTIFIER
129 }
130}
131#[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)"]
132#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
133pub struct InterestGroupAccessedParams {
134 #[serde(rename = "accessTime")]
135 pub access_time: crate::browser_protocol::network::types::TimeSinceEpoch,
136 #[serde(rename = "type")]
137 pub r#type: super::types::InterestGroupAccessType,
138 #[serde(rename = "ownerOrigin")]
139 pub owner_origin: String,
140 #[serde(rename = "name")]
141 pub name: String,
142 #[doc = "For topLevelBid/topLevelAdditionalBid, and when appropriate,\nwin and additionalBidWin"]
143 #[serde(rename = "componentSellerOrigin")]
144 #[serde(skip_serializing_if = "Option::is_none")]
145 #[serde(default)]
146 pub component_seller_origin: Option<String>,
147 #[doc = "For bid or somethingBid event, if done locally and not on a server."]
148 #[serde(rename = "bid")]
149 #[serde(skip_serializing_if = "Option::is_none")]
150 #[serde(default)]
151 pub bid: Option<f64>,
152 #[serde(rename = "bidCurrency")]
153 #[serde(skip_serializing_if = "Option::is_none")]
154 #[serde(default)]
155 pub bid_currency: Option<String>,
156 #[doc = "For non-global events --- links to interestGroupAuctionEvent"]
157 #[serde(rename = "uniqueAuctionId")]
158 #[serde(skip_serializing_if = "Option::is_none")]
159 #[serde(default)]
160 pub unique_auction_id: Option<super::types::InterestGroupAuctionId>,
161}
162#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
163pub enum InterestGroupAccessedMethod {
164 #[serde(rename = "Storage.interestGroupAccessed")]
165 InterestGroupAccessed,
166}
167#[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)"]
168#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
169pub struct InterestGroupAccessed {
170 pub method: InterestGroupAccessedMethod,
171 pub params: InterestGroupAccessedParams,
172}
173impl InterestGroupAccessed {
174 pub const IDENTIFIER: &'static str = "Storage.interestGroupAccessed";
175 pub fn identifier(&self) -> &'static str {
176 Self::IDENTIFIER
177 }
178}
179#[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)"]
180#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
181pub struct InterestGroupAuctionEventOccurredParams {
182 #[serde(rename = "eventTime")]
183 pub event_time: crate::browser_protocol::network::types::TimeSinceEpoch,
184 #[serde(rename = "type")]
185 pub r#type: super::types::InterestGroupAuctionEventType,
186 #[serde(rename = "uniqueAuctionId")]
187 pub unique_auction_id: super::types::InterestGroupAuctionId,
188 #[doc = "Set for child auctions."]
189 #[serde(rename = "parentAuctionId")]
190 #[serde(skip_serializing_if = "Option::is_none")]
191 #[serde(default)]
192 pub parent_auction_id: Option<super::types::InterestGroupAuctionId>,
193 #[doc = "Set for started and configResolved"]
194 #[serde(rename = "auctionConfig")]
195 #[serde(skip_serializing_if = "Option::is_none")]
196 #[serde(default)]
197 pub auction_config: Option<serde_json::Value>,
198}
199#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
200pub enum InterestGroupAuctionEventOccurredMethod {
201 #[serde(rename = "Storage.interestGroupAuctionEventOccurred")]
202 InterestGroupAuctionEventOccurred,
203}
204#[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)"]
205#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
206pub struct InterestGroupAuctionEventOccurred {
207 pub method: InterestGroupAuctionEventOccurredMethod,
208 pub params: InterestGroupAuctionEventOccurredParams,
209}
210impl InterestGroupAuctionEventOccurred {
211 pub const IDENTIFIER: &'static str = "Storage.interestGroupAuctionEventOccurred";
212 pub fn identifier(&self) -> &'static str {
213 Self::IDENTIFIER
214 }
215}
216#[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)"]
217#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
218pub struct InterestGroupAuctionNetworkRequestCreatedParams {
219 #[serde(rename = "type")]
220 pub r#type: super::types::InterestGroupAuctionFetchType,
221 #[serde(rename = "requestId")]
222 pub request_id: crate::browser_protocol::network::types::RequestId,
223 #[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."]
224 #[serde(rename = "auctions")]
225 #[serde(skip_serializing_if = "Vec::is_empty")]
226 pub auctions: Vec<super::types::InterestGroupAuctionId>,
227}
228#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
229pub enum InterestGroupAuctionNetworkRequestCreatedMethod {
230 #[serde(rename = "Storage.interestGroupAuctionNetworkRequestCreated")]
231 InterestGroupAuctionNetworkRequestCreated,
232}
233#[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)"]
234#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
235pub struct InterestGroupAuctionNetworkRequestCreated {
236 pub method: InterestGroupAuctionNetworkRequestCreatedMethod,
237 pub params: InterestGroupAuctionNetworkRequestCreatedParams,
238}
239impl InterestGroupAuctionNetworkRequestCreated {
240 pub const IDENTIFIER: &'static str = "Storage.interestGroupAuctionNetworkRequestCreated";
241 pub fn identifier(&self) -> &'static str {
242 Self::IDENTIFIER
243 }
244}
245#[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)"]
246#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
247pub struct SharedStorageAccessedParams {
248 #[doc = "Time of the access."]
249 #[serde(rename = "accessTime")]
250 pub access_time: crate::browser_protocol::network::types::TimeSinceEpoch,
251 #[doc = "Enum value indicating the access scope."]
252 #[serde(rename = "scope")]
253 pub scope: super::types::SharedStorageAccessScope,
254 #[doc = "Enum value indicating the Shared Storage API method invoked."]
255 #[serde(rename = "method")]
256 pub method: super::types::SharedStorageAccessMethod,
257 #[doc = "DevTools Frame Token for the primary frame tree's root."]
258 #[serde(rename = "mainFrameId")]
259 pub main_frame_id: crate::browser_protocol::page::types::FrameId,
260 #[doc = "Serialization of the origin owning the Shared Storage data."]
261 #[serde(rename = "ownerOrigin")]
262 pub owner_origin: String,
263 #[doc = "Serialization of the site owning the Shared Storage data."]
264 #[serde(rename = "ownerSite")]
265 pub owner_site: String,
266 #[doc = "The sub-parameters wrapped by `params` are all optional and their\npresence/absence depends on `type`."]
267 #[serde(rename = "params")]
268 pub params: super::types::SharedStorageAccessParams,
269}
270#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
271pub enum SharedStorageAccessedMethod {
272 #[serde(rename = "Storage.sharedStorageAccessed")]
273 SharedStorageAccessed,
274}
275#[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)"]
276#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
277pub struct SharedStorageAccessed {
278 pub method: SharedStorageAccessedMethod,
279 pub params: SharedStorageAccessedParams,
280}
281impl SharedStorageAccessed {
282 pub const IDENTIFIER: &'static str = "Storage.sharedStorageAccessed";
283 pub fn identifier(&self) -> &'static str {
284 Self::IDENTIFIER
285 }
286}
287#[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)"]
288#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
289pub struct SharedStorageWorkletOperationExecutionFinishedParams {
290 #[doc = "Time that the operation finished."]
291 #[serde(rename = "finishedTime")]
292 pub finished_time: crate::browser_protocol::network::types::TimeSinceEpoch,
293 #[doc = "Time, in microseconds, from start of shared storage JS API call until\nend of operation execution in the worklet."]
294 #[serde(rename = "executionTime")]
295 pub execution_time: i64,
296 #[doc = "Enum value indicating the Shared Storage API method invoked."]
297 #[serde(rename = "method")]
298 pub method: super::types::SharedStorageAccessMethod,
299 #[doc = "ID of the operation call."]
300 #[serde(rename = "operationId")]
301 pub operation_id: String,
302 #[doc = "Hex representation of the DevTools token used as the TargetID for the\nassociated shared storage worklet."]
303 #[serde(rename = "workletTargetId")]
304 pub worklet_target_id: crate::browser_protocol::target::types::TargetId,
305 #[doc = "DevTools Frame Token for the primary frame tree's root."]
306 #[serde(rename = "mainFrameId")]
307 pub main_frame_id: crate::browser_protocol::page::types::FrameId,
308 #[doc = "Serialization of the origin owning the Shared Storage data."]
309 #[serde(rename = "ownerOrigin")]
310 pub owner_origin: String,
311}
312#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
313pub enum SharedStorageWorkletOperationExecutionFinishedMethod {
314 #[serde(rename = "Storage.sharedStorageWorkletOperationExecutionFinished")]
315 SharedStorageWorkletOperationExecutionFinished,
316}
317#[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)"]
318#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
319pub struct SharedStorageWorkletOperationExecutionFinished {
320 pub method: SharedStorageWorkletOperationExecutionFinishedMethod,
321 pub params: SharedStorageWorkletOperationExecutionFinishedParams,
322}
323impl SharedStorageWorkletOperationExecutionFinished {
324 pub const IDENTIFIER: &'static str = "Storage.sharedStorageWorkletOperationExecutionFinished";
325 pub fn identifier(&self) -> &'static str {
326 Self::IDENTIFIER
327 }
328}
329#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
330pub struct StorageBucketCreatedOrUpdatedParams {
331 #[serde(rename = "bucketInfo")]
332 pub bucket_info: super::types::StorageBucketInfo,
333}
334#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
335pub enum StorageBucketCreatedOrUpdatedMethod {
336 #[serde(rename = "Storage.storageBucketCreatedOrUpdated")]
337 StorageBucketCreatedOrUpdated,
338}
339#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
340pub struct StorageBucketCreatedOrUpdated {
341 pub method: StorageBucketCreatedOrUpdatedMethod,
342 pub params: StorageBucketCreatedOrUpdatedParams,
343}
344impl StorageBucketCreatedOrUpdated {
345 pub const IDENTIFIER: &'static str = "Storage.storageBucketCreatedOrUpdated";
346 pub fn identifier(&self) -> &'static str {
347 Self::IDENTIFIER
348 }
349}
350#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
351pub struct StorageBucketDeletedParams {
352 #[serde(rename = "bucketId")]
353 pub bucket_id: String,
354}
355#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
356pub enum StorageBucketDeletedMethod {
357 #[serde(rename = "Storage.storageBucketDeleted")]
358 StorageBucketDeleted,
359}
360#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
361pub struct StorageBucketDeleted {
362 pub method: StorageBucketDeletedMethod,
363 pub params: StorageBucketDeletedParams,
364}
365impl StorageBucketDeleted {
366 pub const IDENTIFIER: &'static str = "Storage.storageBucketDeleted";
367 pub fn identifier(&self) -> &'static str {
368 Self::IDENTIFIER
369 }
370}
371#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
372pub struct AttributionReportingSourceRegisteredParams {
373 #[serde(rename = "registration")]
374 pub registration: super::types::AttributionReportingSourceRegistration,
375 #[serde(rename = "result")]
376 pub result: super::types::AttributionReportingSourceRegistrationResult,
377}
378#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
379pub enum AttributionReportingSourceRegisteredMethod {
380 #[serde(rename = "Storage.attributionReportingSourceRegistered")]
381 AttributionReportingSourceRegistered,
382}
383#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
384pub struct AttributionReportingSourceRegistered {
385 pub method: AttributionReportingSourceRegisteredMethod,
386 pub params: AttributionReportingSourceRegisteredParams,
387}
388impl AttributionReportingSourceRegistered {
389 pub const IDENTIFIER: &'static str = "Storage.attributionReportingSourceRegistered";
390 pub fn identifier(&self) -> &'static str {
391 Self::IDENTIFIER
392 }
393}
394#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
395pub struct AttributionReportingTriggerRegisteredParams {
396 #[serde(rename = "registration")]
397 pub registration: super::types::AttributionReportingTriggerRegistration,
398 #[serde(rename = "eventLevel")]
399 pub event_level: super::types::AttributionReportingEventLevelResult,
400 #[serde(rename = "aggregatable")]
401 pub aggregatable: super::types::AttributionReportingAggregatableResult,
402}
403#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
404pub enum AttributionReportingTriggerRegisteredMethod {
405 #[serde(rename = "Storage.attributionReportingTriggerRegistered")]
406 AttributionReportingTriggerRegistered,
407}
408#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
409pub struct AttributionReportingTriggerRegistered {
410 pub method: AttributionReportingTriggerRegisteredMethod,
411 pub params: AttributionReportingTriggerRegisteredParams,
412}
413impl AttributionReportingTriggerRegistered {
414 pub const IDENTIFIER: &'static str = "Storage.attributionReportingTriggerRegistered";
415 pub fn identifier(&self) -> &'static str {
416 Self::IDENTIFIER
417 }
418}
419#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
420pub struct AttributionReportingReportSentParams {
421 #[serde(rename = "url")]
422 pub url: String,
423 #[serde(rename = "body")]
424 pub body: serde_json::Value,
425 #[serde(rename = "result")]
426 pub result: super::types::AttributionReportingReportResult,
427 #[doc = "If result is `sent`, populated with net/HTTP status."]
428 #[serde(rename = "netError")]
429 #[serde(skip_serializing_if = "Option::is_none")]
430 #[serde(default)]
431 pub net_error: Option<i64>,
432 #[serde(rename = "netErrorName")]
433 #[serde(skip_serializing_if = "Option::is_none")]
434 #[serde(default)]
435 pub net_error_name: Option<String>,
436 #[serde(rename = "httpStatusCode")]
437 #[serde(skip_serializing_if = "Option::is_none")]
438 #[serde(default)]
439 pub http_status_code: Option<i64>,
440}
441#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
442pub enum AttributionReportingReportSentMethod {
443 #[serde(rename = "Storage.attributionReportingReportSent")]
444 AttributionReportingReportSent,
445}
446#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
447pub struct AttributionReportingReportSent {
448 pub method: AttributionReportingReportSentMethod,
449 pub params: AttributionReportingReportSentParams,
450}
451impl AttributionReportingReportSent {
452 pub const IDENTIFIER: &'static str = "Storage.attributionReportingReportSent";
453 pub fn identifier(&self) -> &'static str {
454 Self::IDENTIFIER
455 }
456}
457#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
458pub struct AttributionReportingVerboseDebugReportSentParams {
459 #[serde(rename = "url")]
460 pub url: String,
461 #[serde(rename = "body")]
462 #[serde(skip_serializing_if = "Option::is_none")]
463 #[serde(default)]
464 pub body: Option<Vec<serde_json::Value>>,
465 #[serde(rename = "netError")]
466 #[serde(skip_serializing_if = "Option::is_none")]
467 #[serde(default)]
468 pub net_error: Option<i64>,
469 #[serde(rename = "netErrorName")]
470 #[serde(skip_serializing_if = "Option::is_none")]
471 #[serde(default)]
472 pub net_error_name: Option<String>,
473 #[serde(rename = "httpStatusCode")]
474 #[serde(skip_serializing_if = "Option::is_none")]
475 #[serde(default)]
476 pub http_status_code: Option<i64>,
477}
478#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
479pub enum AttributionReportingVerboseDebugReportSentMethod {
480 #[serde(rename = "Storage.attributionReportingVerboseDebugReportSent")]
481 AttributionReportingVerboseDebugReportSent,
482}
483#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
484pub struct AttributionReportingVerboseDebugReportSent {
485 pub method: AttributionReportingVerboseDebugReportSentMethod,
486 pub params: AttributionReportingVerboseDebugReportSentParams,
487}
488impl AttributionReportingVerboseDebugReportSent {
489 pub const IDENTIFIER: &'static str = "Storage.attributionReportingVerboseDebugReportSent";
490 pub fn identifier(&self) -> &'static str {
491 Self::IDENTIFIER
492 }
493}
494group_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);