web_sys/features/
gen_RsaOtherPrimesInfo.rs

1#![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 = RsaOtherPrimesInfo)]
8    #[derive(Debug, Clone, PartialEq, Eq)]
9    #[doc = "The `RsaOtherPrimesInfo` dictionary."]
10    #[doc = ""]
11    #[doc = "*This API requires the following crate features to be activated: `RsaOtherPrimesInfo`*"]
12    pub type RsaOtherPrimesInfo;
13    #[doc = "Get the `d` field of this object."]
14    #[doc = ""]
15    #[doc = "*This API requires the following crate features to be activated: `RsaOtherPrimesInfo`*"]
16    #[wasm_bindgen(method, getter = "d")]
17    pub fn get_d(this: &RsaOtherPrimesInfo) -> ::alloc::string::String;
18    #[doc = "Change the `d` field of this object."]
19    #[doc = ""]
20    #[doc = "*This API requires the following crate features to be activated: `RsaOtherPrimesInfo`*"]
21    #[wasm_bindgen(method, setter = "d")]
22    pub fn set_d(this: &RsaOtherPrimesInfo, val: &str);
23    #[doc = "Get the `r` field of this object."]
24    #[doc = ""]
25    #[doc = "*This API requires the following crate features to be activated: `RsaOtherPrimesInfo`*"]
26    #[wasm_bindgen(method, getter = "r")]
27    pub fn get_r(this: &RsaOtherPrimesInfo) -> ::alloc::string::String;
28    #[doc = "Change the `r` field of this object."]
29    #[doc = ""]
30    #[doc = "*This API requires the following crate features to be activated: `RsaOtherPrimesInfo`*"]
31    #[wasm_bindgen(method, setter = "r")]
32    pub fn set_r(this: &RsaOtherPrimesInfo, val: &str);
33    #[doc = "Get the `t` field of this object."]
34    #[doc = ""]
35    #[doc = "*This API requires the following crate features to be activated: `RsaOtherPrimesInfo`*"]
36    #[wasm_bindgen(method, getter = "t")]
37    pub fn get_t(this: &RsaOtherPrimesInfo) -> ::alloc::string::String;
38    #[doc = "Change the `t` field of this object."]
39    #[doc = ""]
40    #[doc = "*This API requires the following crate features to be activated: `RsaOtherPrimesInfo`*"]
41    #[wasm_bindgen(method, setter = "t")]
42    pub fn set_t(this: &RsaOtherPrimesInfo, val: &str);
43}
44impl RsaOtherPrimesInfo {
45    #[doc = "Construct a new `RsaOtherPrimesInfo`."]
46    #[doc = ""]
47    #[doc = "*This API requires the following crate features to be activated: `RsaOtherPrimesInfo`*"]
48    pub fn new(d: &str, r: &str, t: &str) -> Self {
49        #[allow(unused_mut)]
50        let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
51        ret.set_d(d);
52        ret.set_r(r);
53        ret.set_t(t);
54        ret
55    }
56    #[deprecated = "Use `set_d()` instead."]
57    pub fn d(&mut self, val: &str) -> &mut Self {
58        self.set_d(val);
59        self
60    }
61    #[deprecated = "Use `set_r()` instead."]
62    pub fn r(&mut self, val: &str) -> &mut Self {
63        self.set_r(val);
64        self
65    }
66    #[deprecated = "Use `set_t()` instead."]
67    pub fn t(&mut self, val: &str) -> &mut Self {
68        self.set_t(val);
69        self
70    }
71}