summaryrefslogtreecommitdiffstats
path: root/vendor/web-sys/src/features/gen_JsonWebKey.rs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 02:49:50 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 02:49:50 +0000
commit9835e2ae736235810b4ea1c162ca5e65c547e770 (patch)
tree3fcebf40ed70e581d776a8a4c65923e8ec20e026 /vendor/web-sys/src/features/gen_JsonWebKey.rs
parentReleasing progress-linux version 1.70.0+dfsg2-1~progress7.99u1. (diff)
downloadrustc-9835e2ae736235810b4ea1c162ca5e65c547e770.tar.xz
rustc-9835e2ae736235810b4ea1c162ca5e65c547e770.zip
Merging upstream version 1.71.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/web-sys/src/features/gen_JsonWebKey.rs')
-rw-r--r--vendor/web-sys/src/features/gen_JsonWebKey.rs261
1 files changed, 261 insertions, 0 deletions
diff --git a/vendor/web-sys/src/features/gen_JsonWebKey.rs b/vendor/web-sys/src/features/gen_JsonWebKey.rs
new file mode 100644
index 000000000..b377c19c8
--- /dev/null
+++ b/vendor/web-sys/src/features/gen_JsonWebKey.rs
@@ -0,0 +1,261 @@
+#![allow(unused_imports)]
+use super::*;
+use wasm_bindgen::prelude::*;
+#[wasm_bindgen]
+extern "C" {
+ # [wasm_bindgen (extends = :: js_sys :: Object , js_name = JsonWebKey)]
+ #[derive(Debug, Clone, PartialEq, Eq)]
+ #[doc = "The `JsonWebKey` dictionary."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"]
+ pub type JsonWebKey;
+}
+impl JsonWebKey {
+ #[doc = "Construct a new `JsonWebKey`."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"]
+ pub fn new(kty: &str) -> Self {
+ #[allow(unused_mut)]
+ let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
+ ret.kty(kty);
+ ret
+ }
+ #[doc = "Change the `alg` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"]
+ pub fn alg(&mut self, val: &str) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("alg"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `crv` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"]
+ pub fn crv(&mut self, val: &str) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("crv"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `d` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"]
+ pub fn d(&mut self, val: &str) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("d"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `dp` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"]
+ pub fn dp(&mut self, val: &str) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("dp"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `dq` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"]
+ pub fn dq(&mut self, val: &str) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("dq"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `e` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"]
+ pub fn e(&mut self, val: &str) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("e"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `ext` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"]
+ pub fn ext(&mut self, val: bool) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("ext"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `k` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"]
+ pub fn k(&mut self, val: &str) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("k"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `key_ops` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"]
+ pub fn key_ops(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(
+ self.as_ref(),
+ &JsValue::from("key_ops"),
+ &JsValue::from(val),
+ );
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `kty` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"]
+ pub fn kty(&mut self, val: &str) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("kty"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `n` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"]
+ pub fn n(&mut self, val: &str) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("n"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `oth` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"]
+ pub fn oth(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("oth"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `p` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"]
+ pub fn p(&mut self, val: &str) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("p"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `q` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"]
+ pub fn q(&mut self, val: &str) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("q"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `qi` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"]
+ pub fn qi(&mut self, val: &str) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("qi"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `use` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"]
+ pub fn use_(&mut self, val: &str) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("use"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `x` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"]
+ pub fn x(&mut self, val: &str) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("x"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `y` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"]
+ pub fn y(&mut self, val: &str) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("y"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+}