pub struct SharedStorageAccessParams {
pub script_source_url: Option<String>,
pub operation_name: Option<String>,
pub serialized_data: Option<String>,
pub urls_with_metadata: Option<Vec<SharedStorageUrlWithMetadata>>,
pub key: Option<String>,
pub value: Option<String>,
pub ignore_if_present: Option<bool>,
}Expand description
Bundles the parameters for shared storage access events whose presence/absence can vary according to SharedStorageAccessType. SharedStorageAccessParams
Fields§
§script_source_url: Option<String>Spec of the module script URL. Present only for SharedStorageAccessType.documentAddModule.
operation_name: Option<String>Name of the registered operation to be run. Present only for SharedStorageAccessType.documentRun and SharedStorageAccessType.documentSelectURL.
serialized_data: Option<String>The operation’s serialized data in bytes (converted to a string). Present only for SharedStorageAccessType.documentRun and SharedStorageAccessType.documentSelectURL.
urls_with_metadata: Option<Vec<SharedStorageUrlWithMetadata>>Array of candidate URLs’ specs, along with any associated metadata. Present only for SharedStorageAccessType.documentSelectURL.
key: Option<String>Key for a specific entry in an origin’s shared storage. Present only for SharedStorageAccessType.documentSet, SharedStorageAccessType.documentAppend, SharedStorageAccessType.documentDelete, SharedStorageAccessType.workletSet, SharedStorageAccessType.workletAppend, SharedStorageAccessType.workletDelete, SharedStorageAccessType.workletGet, SharedStorageAccessType.headerSet, SharedStorageAccessType.headerAppend, and SharedStorageAccessType.headerDelete.
value: Option<String>Value for a specific entry in an origin’s shared storage. Present only for SharedStorageAccessType.documentSet, SharedStorageAccessType.documentAppend, SharedStorageAccessType.workletSet, SharedStorageAccessType.workletAppend, SharedStorageAccessType.headerSet, and SharedStorageAccessType.headerAppend.
ignore_if_present: Option<bool>Whether or not to set an entry for a key if that key is already present. Present only for SharedStorageAccessType.documentSet, SharedStorageAccessType.workletSet, and SharedStorageAccessType.headerSet.
Implementations§
pub fn builder() -> SharedStorageAccessParamsBuilder
pub const IDENTIFIER: &'static str = "Storage.SharedStorageAccessParams"
Trait Implementations§
Source§fn clone(&self) -> SharedStorageAccessParams
fn clone(&self) -> SharedStorageAccessParams
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more