web_sys/features/
gen_RsaHashedImportParams.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RsaHashedImportParams)]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `RsaHashedImportParams` dictionary."]
10 #[doc = ""]
11 #[doc = "*This API requires the following crate features to be activated: `RsaHashedImportParams`*"]
12 pub type RsaHashedImportParams;
13 #[doc = "Get the `hash` field of this object."]
14 #[doc = ""]
15 #[doc = "*This API requires the following crate features to be activated: `RsaHashedImportParams`*"]
16 #[wasm_bindgen(method, getter = "hash")]
17 pub fn get_hash(this: &RsaHashedImportParams) -> ::wasm_bindgen::JsValue;
18 #[doc = "Change the `hash` field of this object."]
19 #[doc = ""]
20 #[doc = "*This API requires the following crate features to be activated: `RsaHashedImportParams`*"]
21 #[wasm_bindgen(method, setter = "hash")]
22 pub fn set_hash(this: &RsaHashedImportParams, val: &::wasm_bindgen::JsValue);
23 #[doc = "Change the `hash` field of this object."]
24 #[doc = ""]
25 #[doc = "*This API requires the following crate features to be activated: `RsaHashedImportParams`*"]
26 #[wasm_bindgen(method, setter = "hash")]
27 pub fn set_hash_object(this: &RsaHashedImportParams, val: &::js_sys::Object);
28 #[doc = "Change the `hash` field of this object."]
29 #[doc = ""]
30 #[doc = "*This API requires the following crate features to be activated: `RsaHashedImportParams`*"]
31 #[wasm_bindgen(method, setter = "hash")]
32 pub fn set_hash_str(this: &RsaHashedImportParams, val: &str);
33}
34impl RsaHashedImportParams {
35 #[doc = "Construct a new `RsaHashedImportParams`."]
36 #[doc = ""]
37 #[doc = "*This API requires the following crate features to be activated: `RsaHashedImportParams`*"]
38 pub fn new(hash: &::wasm_bindgen::JsValue) -> Self {
39 #[allow(unused_mut)]
40 let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
41 ret.set_hash(hash);
42 ret
43 }
44 #[doc = "Construct a new `RsaHashedImportParams`."]
45 #[doc = ""]
46 #[doc = "*This API requires the following crate features to be activated: `RsaHashedImportParams`*"]
47 pub fn new_with_object(hash: &::js_sys::Object) -> Self {
48 #[allow(unused_mut)]
49 let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
50 ret.set_hash_object(hash);
51 ret
52 }
53 #[doc = "Construct a new `RsaHashedImportParams`."]
54 #[doc = ""]
55 #[doc = "*This API requires the following crate features to be activated: `RsaHashedImportParams`*"]
56 pub fn new_with_str(hash: &str) -> Self {
57 #[allow(unused_mut)]
58 let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
59 ret.set_hash_str(hash);
60 ret
61 }
62 #[deprecated = "Use `set_hash()` instead."]
63 pub fn hash(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
64 self.set_hash(val);
65 self
66 }
67}