1 #![allow(unused_imports)] 2 use super::*; 3 use wasm_bindgen::prelude::*; 4 #[wasm_bindgen] 5 extern "C" { 6 # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RsaOtherPrimesInfo)] 7 #[derive(Debug, Clone, PartialEq, Eq)] 8 #[doc = "The `RsaOtherPrimesInfo` dictionary."] 9 #[doc = ""] 10 #[doc = "*This API requires the following crate features to be activated: `RsaOtherPrimesInfo`*"] 11 pub type RsaOtherPrimesInfo; 12 } 13 impl RsaOtherPrimesInfo { 14 #[doc = "Construct a new `RsaOtherPrimesInfo`."] 15 #[doc = ""] 16 #[doc = "*This API requires the following crate features to be activated: `RsaOtherPrimesInfo`*"] new(d: &str, r: &str, t: &str) -> Self17 pub fn new(d: &str, r: &str, t: &str) -> Self { 18 #[allow(unused_mut)] 19 let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); 20 ret.d(d); 21 ret.r(r); 22 ret.t(t); 23 ret 24 } 25 #[doc = "Change the `d` field of this object."] 26 #[doc = ""] 27 #[doc = "*This API requires the following crate features to be activated: `RsaOtherPrimesInfo`*"] d(&mut self, val: &str) -> &mut Self28 pub fn d(&mut self, val: &str) -> &mut Self { 29 use wasm_bindgen::JsValue; 30 let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("d"), &JsValue::from(val)); 31 debug_assert!( 32 r.is_ok(), 33 "setting properties should never fail on our dictionary objects" 34 ); 35 let _ = r; 36 self 37 } 38 #[doc = "Change the `r` field of this object."] 39 #[doc = ""] 40 #[doc = "*This API requires the following crate features to be activated: `RsaOtherPrimesInfo`*"] r(&mut self, val: &str) -> &mut Self41 pub fn r(&mut self, val: &str) -> &mut Self { 42 use wasm_bindgen::JsValue; 43 let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("r"), &JsValue::from(val)); 44 debug_assert!( 45 r.is_ok(), 46 "setting properties should never fail on our dictionary objects" 47 ); 48 let _ = r; 49 self 50 } 51 #[doc = "Change the `t` field of this object."] 52 #[doc = ""] 53 #[doc = "*This API requires the following crate features to be activated: `RsaOtherPrimesInfo`*"] t(&mut self, val: &str) -> &mut Self54 pub fn t(&mut self, val: &str) -> &mut Self { 55 use wasm_bindgen::JsValue; 56 let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("t"), &JsValue::from(val)); 57 debug_assert!( 58 r.is_ok(), 59 "setting properties should never fail on our dictionary objects" 60 ); 61 let _ = r; 62 self 63 } 64 } 65