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 moreSource§fn default() -> SharedStorageAccessParams
fn default() -> SharedStorageAccessParams
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SharedStorageAccessParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SharedStorageAccessParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Auto Trait Implementations§
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more