use serde::{Serialize, Deserialize};
use serde_json::Value as JsonValue;
pub type SerializedStorageKey = String;
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Default)]
pub enum StorageType {
#[default]
Cookies,
FileSystems,
Indexeddb,
LocalStorage,
ShaderCache,
Websql,
ServiceWorkers,
CacheStorage,
InterestGroups,
SharedStorage,
StorageBuckets,
All,
Other,
}
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
#[serde(rename_all = "camelCase")]
pub struct UsageForType {
pub storageType: StorageType,
pub usage: f64,
}
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
#[serde(rename_all = "camelCase")]
pub struct TrustTokens {
pub issuerOrigin: String,
pub count: f64,
}
pub type InterestGroupAuctionId = String;
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Default)]
pub enum InterestGroupAccessType {
#[default]
Join,
Leave,
Update,
Loaded,
Bid,
Win,
AdditionalBid,
AdditionalBidWin,
TopLevelBid,
TopLevelAdditionalBid,
Clear,
}
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Default)]
pub enum InterestGroupAuctionEventType {
#[default]
Started,
ConfigResolved,
}
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Default)]
pub enum InterestGroupAuctionFetchType {
#[default]
BidderJs,
BidderWasm,
SellerJs,
BidderTrustedSignals,
SellerTrustedSignals,
}
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Default)]
pub enum SharedStorageAccessScope {
#[default]
Window,
SharedStorageWorklet,
ProtectedAudienceWorklet,
Header,
}
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Default)]
pub enum SharedStorageAccessMethod {
#[default]
AddModule,
CreateWorklet,
SelectURL,
Run,
BatchUpdate,
Set,
Append,
Delete,
Clear,
Get,
Keys,
Values,
Entries,
Length,
RemainingBudget,
}
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
#[serde(rename_all = "camelCase")]
pub struct SharedStorageEntry {
pub key: String,
pub value: String,
}
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
#[serde(rename_all = "camelCase")]
pub struct SharedStorageMetadata {
pub creationTime: crate::network::TimeSinceEpoch,
pub length: u64,
pub remainingBudget: f64,
pub bytesUsed: i64,
}
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
#[serde(rename_all = "camelCase")]
pub struct SharedStoragePrivateAggregationConfig {
#[serde(skip_serializing_if = "Option::is_none")]
pub aggregationCoordinatorOrigin: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub contextId: Option<String>,
pub filteringIdMaxBytes: u64,
#[serde(skip_serializing_if = "Option::is_none")]
pub maxContributions: Option<i64>,
}
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
#[serde(rename_all = "camelCase")]
pub struct SharedStorageReportingMetadata {
pub eventType: String,
pub reportingUrl: String,
}
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
#[serde(rename_all = "camelCase")]
pub struct SharedStorageUrlWithMetadata {
pub url: String,
pub reportingMetadata: Vec<SharedStorageReportingMetadata>,
}
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
#[serde(rename_all = "camelCase")]
pub struct SharedStorageAccessParams {
#[serde(skip_serializing_if = "Option::is_none")]
pub scriptSourceUrl: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub dataOrigin: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub operationName: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub operationId: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub keepAlive: Option<bool>,
#[serde(skip_serializing_if = "Option::is_none")]
pub privateAggregationConfig: Option<SharedStoragePrivateAggregationConfig>,
#[serde(skip_serializing_if = "Option::is_none")]
pub serializedData: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub urlsWithMetadata: Option<Vec<SharedStorageUrlWithMetadata>>,
#[serde(skip_serializing_if = "Option::is_none")]
pub urnUuid: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub key: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub value: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub ignoreIfPresent: Option<bool>,
#[serde(skip_serializing_if = "Option::is_none")]
pub workletOrdinal: Option<i64>,
#[serde(skip_serializing_if = "Option::is_none")]
pub workletTargetId: Option<crate::target::TargetID>,
#[serde(skip_serializing_if = "Option::is_none")]
pub withLock: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub batchUpdateId: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub batchSize: Option<u64>,
}
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Default)]
pub enum StorageBucketsDurability {
#[default]
Relaxed,
Strict,
}
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
#[serde(rename_all = "camelCase")]
pub struct StorageBucket {
pub storageKey: SerializedStorageKey,
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
}
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
#[serde(rename_all = "camelCase")]
pub struct StorageBucketInfo {
pub bucket: StorageBucket,
pub id: String,
pub expiration: crate::network::TimeSinceEpoch,
pub quota: f64,
pub persistent: bool,
pub durability: StorageBucketsDurability,
}
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
#[serde(rename_all = "camelCase")]
pub struct RelatedWebsiteSet {
pub primarySites: Vec<String>,
pub associatedSites: Vec<String>,
pub serviceSites: Vec<String>,
}
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
#[serde(rename_all = "camelCase")]
pub struct GetStorageKeyForFrameParams {
pub frameId: crate::page::FrameId,
}
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
#[serde(rename_all = "camelCase")]
pub struct GetStorageKeyForFrameReturns {
pub storageKey: SerializedStorageKey,
}
impl GetStorageKeyForFrameParams { pub const METHOD: &'static str = "Storage.getStorageKeyForFrame"; }
impl crate::CdpCommand for GetStorageKeyForFrameParams {
const METHOD: &'static str = "Storage.getStorageKeyForFrame";
type Response = GetStorageKeyForFrameReturns;
}
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
#[serde(rename_all = "camelCase")]
pub struct GetStorageKeyParams {
#[serde(skip_serializing_if = "Option::is_none")]
pub frameId: Option<crate::page::FrameId>,
}
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
#[serde(rename_all = "camelCase")]
pub struct GetStorageKeyReturns {
pub storageKey: SerializedStorageKey,
}
impl GetStorageKeyParams { pub const METHOD: &'static str = "Storage.getStorageKey"; }
impl crate::CdpCommand for GetStorageKeyParams {
const METHOD: &'static str = "Storage.getStorageKey";
type Response = GetStorageKeyReturns;
}
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
#[serde(rename_all = "camelCase")]
pub struct ClearDataForOriginParams {
pub origin: String,
pub storageTypes: String,
}
impl ClearDataForOriginParams { pub const METHOD: &'static str = "Storage.clearDataForOrigin"; }
impl crate::CdpCommand for ClearDataForOriginParams {
const METHOD: &'static str = "Storage.clearDataForOrigin";
type Response = crate::EmptyReturns;
}
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
#[serde(rename_all = "camelCase")]
pub struct ClearDataForStorageKeyParams {
pub storageKey: String,
pub storageTypes: String,
}
impl ClearDataForStorageKeyParams { pub const METHOD: &'static str = "Storage.clearDataForStorageKey"; }
impl crate::CdpCommand for ClearDataForStorageKeyParams {
const METHOD: &'static str = "Storage.clearDataForStorageKey";
type Response = crate::EmptyReturns;
}
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
#[serde(rename_all = "camelCase")]
pub struct GetCookiesParams {
#[serde(skip_serializing_if = "Option::is_none")]
pub browserContextId: Option<crate::browser::BrowserContextID>,
}
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
#[serde(rename_all = "camelCase")]
pub struct GetCookiesReturns {
pub cookies: Vec<crate::network::Cookie>,
}
impl GetCookiesParams { pub const METHOD: &'static str = "Storage.getCookies"; }
impl crate::CdpCommand for GetCookiesParams {
const METHOD: &'static str = "Storage.getCookies";
type Response = GetCookiesReturns;
}
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
#[serde(rename_all = "camelCase")]
pub struct SetCookiesParams {
pub cookies: Vec<crate::network::CookieParam>,
#[serde(skip_serializing_if = "Option::is_none")]
pub browserContextId: Option<crate::browser::BrowserContextID>,
}
impl SetCookiesParams { pub const METHOD: &'static str = "Storage.setCookies"; }
impl crate::CdpCommand for SetCookiesParams {
const METHOD: &'static str = "Storage.setCookies";
type Response = crate::EmptyReturns;
}
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
#[serde(rename_all = "camelCase")]
pub struct ClearCookiesParams {
#[serde(skip_serializing_if = "Option::is_none")]
pub browserContextId: Option<crate::browser::BrowserContextID>,
}
impl ClearCookiesParams { pub const METHOD: &'static str = "Storage.clearCookies"; }
impl crate::CdpCommand for ClearCookiesParams {
const METHOD: &'static str = "Storage.clearCookies";
type Response = crate::EmptyReturns;
}
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
#[serde(rename_all = "camelCase")]
pub struct GetUsageAndQuotaParams {
pub origin: String,
}
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
#[serde(rename_all = "camelCase")]
pub struct GetUsageAndQuotaReturns {
pub usage: f64,
pub quota: f64,
pub overrideActive: bool,
pub usageBreakdown: Vec<UsageForType>,
}
impl GetUsageAndQuotaParams { pub const METHOD: &'static str = "Storage.getUsageAndQuota"; }
impl crate::CdpCommand for GetUsageAndQuotaParams {
const METHOD: &'static str = "Storage.getUsageAndQuota";
type Response = GetUsageAndQuotaReturns;
}
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
#[serde(rename_all = "camelCase")]
pub struct OverrideQuotaForOriginParams {
pub origin: String,
#[serde(skip_serializing_if = "Option::is_none")]
pub quotaSize: Option<f64>,
}
impl OverrideQuotaForOriginParams { pub const METHOD: &'static str = "Storage.overrideQuotaForOrigin"; }
impl crate::CdpCommand for OverrideQuotaForOriginParams {
const METHOD: &'static str = "Storage.overrideQuotaForOrigin";
type Response = crate::EmptyReturns;
}
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
#[serde(rename_all = "camelCase")]
pub struct TrackCacheStorageForOriginParams {
pub origin: String,
}
impl TrackCacheStorageForOriginParams { pub const METHOD: &'static str = "Storage.trackCacheStorageForOrigin"; }
impl crate::CdpCommand for TrackCacheStorageForOriginParams {
const METHOD: &'static str = "Storage.trackCacheStorageForOrigin";
type Response = crate::EmptyReturns;
}
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
#[serde(rename_all = "camelCase")]
pub struct TrackCacheStorageForStorageKeyParams {
pub storageKey: String,
}
impl TrackCacheStorageForStorageKeyParams { pub const METHOD: &'static str = "Storage.trackCacheStorageForStorageKey"; }
impl crate::CdpCommand for TrackCacheStorageForStorageKeyParams {
const METHOD: &'static str = "Storage.trackCacheStorageForStorageKey";
type Response = crate::EmptyReturns;
}
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
#[serde(rename_all = "camelCase")]
pub struct TrackIndexedDBForOriginParams {
pub origin: String,
}
impl TrackIndexedDBForOriginParams { pub const METHOD: &'static str = "Storage.trackIndexedDBForOrigin"; }
impl crate::CdpCommand for TrackIndexedDBForOriginParams {
const METHOD: &'static str = "Storage.trackIndexedDBForOrigin";
type Response = crate::EmptyReturns;
}
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
#[serde(rename_all = "camelCase")]
pub struct TrackIndexedDBForStorageKeyParams {
pub storageKey: String,
}
impl TrackIndexedDBForStorageKeyParams { pub const METHOD: &'static str = "Storage.trackIndexedDBForStorageKey"; }
impl crate::CdpCommand for TrackIndexedDBForStorageKeyParams {
const METHOD: &'static str = "Storage.trackIndexedDBForStorageKey";
type Response = crate::EmptyReturns;
}
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
#[serde(rename_all = "camelCase")]
pub struct UntrackCacheStorageForOriginParams {
pub origin: String,
}
impl UntrackCacheStorageForOriginParams { pub const METHOD: &'static str = "Storage.untrackCacheStorageForOrigin"; }
impl crate::CdpCommand for UntrackCacheStorageForOriginParams {
const METHOD: &'static str = "Storage.untrackCacheStorageForOrigin";
type Response = crate::EmptyReturns;
}
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
#[serde(rename_all = "camelCase")]
pub struct UntrackCacheStorageForStorageKeyParams {
pub storageKey: String,
}
impl UntrackCacheStorageForStorageKeyParams { pub const METHOD: &'static str = "Storage.untrackCacheStorageForStorageKey"; }
impl crate::CdpCommand for UntrackCacheStorageForStorageKeyParams {
const METHOD: &'static str = "Storage.untrackCacheStorageForStorageKey";
type Response = crate::EmptyReturns;
}
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
#[serde(rename_all = "camelCase")]
pub struct UntrackIndexedDBForOriginParams {
pub origin: String,
}
impl UntrackIndexedDBForOriginParams { pub const METHOD: &'static str = "Storage.untrackIndexedDBForOrigin"; }
impl crate::CdpCommand for UntrackIndexedDBForOriginParams {
const METHOD: &'static str = "Storage.untrackIndexedDBForOrigin";
type Response = crate::EmptyReturns;
}
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
#[serde(rename_all = "camelCase")]
pub struct UntrackIndexedDBForStorageKeyParams {
pub storageKey: String,
}
impl UntrackIndexedDBForStorageKeyParams { pub const METHOD: &'static str = "Storage.untrackIndexedDBForStorageKey"; }
impl crate::CdpCommand for UntrackIndexedDBForStorageKeyParams {
const METHOD: &'static str = "Storage.untrackIndexedDBForStorageKey";
type Response = crate::EmptyReturns;
}
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
#[serde(rename_all = "camelCase")]
pub struct GetTrustTokensReturns {
pub tokens: Vec<TrustTokens>,
}
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
pub struct GetTrustTokensParams {}
impl GetTrustTokensParams { pub const METHOD: &'static str = "Storage.getTrustTokens"; }
impl crate::CdpCommand for GetTrustTokensParams {
const METHOD: &'static str = "Storage.getTrustTokens";
type Response = GetTrustTokensReturns;
}
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
#[serde(rename_all = "camelCase")]
pub struct ClearTrustTokensParams {
pub issuerOrigin: String,
}
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
#[serde(rename_all = "camelCase")]
pub struct ClearTrustTokensReturns {
pub didDeleteTokens: bool,
}
impl ClearTrustTokensParams { pub const METHOD: &'static str = "Storage.clearTrustTokens"; }
impl crate::CdpCommand for ClearTrustTokensParams {
const METHOD: &'static str = "Storage.clearTrustTokens";
type Response = ClearTrustTokensReturns;
}
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
#[serde(rename_all = "camelCase")]
pub struct GetInterestGroupDetailsParams {
pub ownerOrigin: String,
pub name: String,
}
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
#[serde(rename_all = "camelCase")]
pub struct GetInterestGroupDetailsReturns {
pub details: serde_json::Map<String, JsonValue>,
}
impl GetInterestGroupDetailsParams { pub const METHOD: &'static str = "Storage.getInterestGroupDetails"; }
impl crate::CdpCommand for GetInterestGroupDetailsParams {
const METHOD: &'static str = "Storage.getInterestGroupDetails";
type Response = GetInterestGroupDetailsReturns;
}
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
#[serde(rename_all = "camelCase")]
pub struct SetInterestGroupTrackingParams {
pub enable: bool,
}
impl SetInterestGroupTrackingParams { pub const METHOD: &'static str = "Storage.setInterestGroupTracking"; }
impl crate::CdpCommand for SetInterestGroupTrackingParams {
const METHOD: &'static str = "Storage.setInterestGroupTracking";
type Response = crate::EmptyReturns;
}
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
#[serde(rename_all = "camelCase")]
pub struct SetInterestGroupAuctionTrackingParams {
pub enable: bool,
}
impl SetInterestGroupAuctionTrackingParams { pub const METHOD: &'static str = "Storage.setInterestGroupAuctionTracking"; }
impl crate::CdpCommand for SetInterestGroupAuctionTrackingParams {
const METHOD: &'static str = "Storage.setInterestGroupAuctionTracking";
type Response = crate::EmptyReturns;
}
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
#[serde(rename_all = "camelCase")]
pub struct GetSharedStorageMetadataParams {
pub ownerOrigin: String,
}
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
#[serde(rename_all = "camelCase")]
pub struct GetSharedStorageMetadataReturns {
pub metadata: SharedStorageMetadata,
}
impl GetSharedStorageMetadataParams { pub const METHOD: &'static str = "Storage.getSharedStorageMetadata"; }
impl crate::CdpCommand for GetSharedStorageMetadataParams {
const METHOD: &'static str = "Storage.getSharedStorageMetadata";
type Response = GetSharedStorageMetadataReturns;
}
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
#[serde(rename_all = "camelCase")]
pub struct GetSharedStorageEntriesParams {
pub ownerOrigin: String,
}
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
#[serde(rename_all = "camelCase")]
pub struct GetSharedStorageEntriesReturns {
pub entries: Vec<SharedStorageEntry>,
}
impl GetSharedStorageEntriesParams { pub const METHOD: &'static str = "Storage.getSharedStorageEntries"; }
impl crate::CdpCommand for GetSharedStorageEntriesParams {
const METHOD: &'static str = "Storage.getSharedStorageEntries";
type Response = GetSharedStorageEntriesReturns;
}
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
#[serde(rename_all = "camelCase")]
pub struct SetSharedStorageEntryParams {
pub ownerOrigin: String,
pub key: String,
pub value: String,
#[serde(skip_serializing_if = "Option::is_none")]
pub ignoreIfPresent: Option<bool>,
}
impl SetSharedStorageEntryParams { pub const METHOD: &'static str = "Storage.setSharedStorageEntry"; }
impl crate::CdpCommand for SetSharedStorageEntryParams {
const METHOD: &'static str = "Storage.setSharedStorageEntry";
type Response = crate::EmptyReturns;
}
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
#[serde(rename_all = "camelCase")]
pub struct DeleteSharedStorageEntryParams {
pub ownerOrigin: String,
pub key: String,
}
impl DeleteSharedStorageEntryParams { pub const METHOD: &'static str = "Storage.deleteSharedStorageEntry"; }
impl crate::CdpCommand for DeleteSharedStorageEntryParams {
const METHOD: &'static str = "Storage.deleteSharedStorageEntry";
type Response = crate::EmptyReturns;
}
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
#[serde(rename_all = "camelCase")]
pub struct ClearSharedStorageEntriesParams {
pub ownerOrigin: String,
}
impl ClearSharedStorageEntriesParams { pub const METHOD: &'static str = "Storage.clearSharedStorageEntries"; }
impl crate::CdpCommand for ClearSharedStorageEntriesParams {
const METHOD: &'static str = "Storage.clearSharedStorageEntries";
type Response = crate::EmptyReturns;
}
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
#[serde(rename_all = "camelCase")]
pub struct ResetSharedStorageBudgetParams {
pub ownerOrigin: String,
}
impl ResetSharedStorageBudgetParams { pub const METHOD: &'static str = "Storage.resetSharedStorageBudget"; }
impl crate::CdpCommand for ResetSharedStorageBudgetParams {
const METHOD: &'static str = "Storage.resetSharedStorageBudget";
type Response = crate::EmptyReturns;
}
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
#[serde(rename_all = "camelCase")]
pub struct SetSharedStorageTrackingParams {
pub enable: bool,
}
impl SetSharedStorageTrackingParams { pub const METHOD: &'static str = "Storage.setSharedStorageTracking"; }
impl crate::CdpCommand for SetSharedStorageTrackingParams {
const METHOD: &'static str = "Storage.setSharedStorageTracking";
type Response = crate::EmptyReturns;
}
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
#[serde(rename_all = "camelCase")]
pub struct SetStorageBucketTrackingParams {
pub storageKey: String,
pub enable: bool,
}
impl SetStorageBucketTrackingParams { pub const METHOD: &'static str = "Storage.setStorageBucketTracking"; }
impl crate::CdpCommand for SetStorageBucketTrackingParams {
const METHOD: &'static str = "Storage.setStorageBucketTracking";
type Response = crate::EmptyReturns;
}
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
#[serde(rename_all = "camelCase")]
pub struct DeleteStorageBucketParams {
pub bucket: StorageBucket,
}
impl DeleteStorageBucketParams { pub const METHOD: &'static str = "Storage.deleteStorageBucket"; }
impl crate::CdpCommand for DeleteStorageBucketParams {
const METHOD: &'static str = "Storage.deleteStorageBucket";
type Response = crate::EmptyReturns;
}
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
#[serde(rename_all = "camelCase")]
pub struct RunBounceTrackingMitigationsReturns {
pub deletedSites: Vec<String>,
}
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
pub struct RunBounceTrackingMitigationsParams {}
impl RunBounceTrackingMitigationsParams { pub const METHOD: &'static str = "Storage.runBounceTrackingMitigations"; }
impl crate::CdpCommand for RunBounceTrackingMitigationsParams {
const METHOD: &'static str = "Storage.runBounceTrackingMitigations";
type Response = RunBounceTrackingMitigationsReturns;
}
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
#[serde(rename_all = "camelCase")]
pub struct GetRelatedWebsiteSetsReturns {
pub sets: Vec<RelatedWebsiteSet>,
}
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
pub struct GetRelatedWebsiteSetsParams {}
impl GetRelatedWebsiteSetsParams { pub const METHOD: &'static str = "Storage.getRelatedWebsiteSets"; }
impl crate::CdpCommand for GetRelatedWebsiteSetsParams {
const METHOD: &'static str = "Storage.getRelatedWebsiteSets";
type Response = GetRelatedWebsiteSetsReturns;
}
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
#[serde(rename_all = "camelCase")]
pub struct SetProtectedAudienceKAnonymityParams {
pub owner: String,
pub name: String,
pub hashes: Vec<String>,
}
impl SetProtectedAudienceKAnonymityParams { pub const METHOD: &'static str = "Storage.setProtectedAudienceKAnonymity"; }
impl crate::CdpCommand for SetProtectedAudienceKAnonymityParams {
const METHOD: &'static str = "Storage.setProtectedAudienceKAnonymity";
type Response = crate::EmptyReturns;
}