diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-30 03:57:31 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-30 03:57:31 +0000 |
commit | dc0db358abe19481e475e10c32149b53370f1a1c (patch) | |
tree | ab8ce99c4b255ce46f99ef402c27916055b899ee /vendor/web-sys/src/features/gen_RegistrationOptions.rs | |
parent | Releasing progress-linux version 1.71.1+dfsg1-2~progress7.99u1. (diff) | |
download | rustc-dc0db358abe19481e475e10c32149b53370f1a1c.tar.xz rustc-dc0db358abe19481e475e10c32149b53370f1a1c.zip |
Merging upstream version 1.72.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/web-sys/src/features/gen_RegistrationOptions.rs')
-rw-r--r-- | vendor/web-sys/src/features/gen_RegistrationOptions.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/vendor/web-sys/src/features/gen_RegistrationOptions.rs b/vendor/web-sys/src/features/gen_RegistrationOptions.rs index 9c186a6c8..ebc9aa237 100644 --- a/vendor/web-sys/src/features/gen_RegistrationOptions.rs +++ b/vendor/web-sys/src/features/gen_RegistrationOptions.rs @@ -1,4 +1,5 @@ #![allow(unused_imports)] +#![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] @@ -32,6 +33,19 @@ impl RegistrationOptions { let _ = r; self } + #[doc = "Change the `type` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RegistrationOptions`*"] + pub fn type_(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("type"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } #[cfg(feature = "ServiceWorkerUpdateViaCache")] #[doc = "Change the `updateViaCache` field of this object."] #[doc = ""] |