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 = RTCIdentityProviderDetails)] 7 #[derive(Debug, Clone, PartialEq, Eq)] 8 #[doc = "The `RtcIdentityProviderDetails` dictionary."] 9 #[doc = ""] 10 #[doc = "*This API requires the following crate features to be activated: `RtcIdentityProviderDetails`*"] 11 pub type RtcIdentityProviderDetails; 12 } 13 impl RtcIdentityProviderDetails { 14 #[doc = "Construct a new `RtcIdentityProviderDetails`."] 15 #[doc = ""] 16 #[doc = "*This API requires the following crate features to be activated: `RtcIdentityProviderDetails`*"] new(domain: &str) -> Self17 pub fn new(domain: &str) -> Self { 18 #[allow(unused_mut)] 19 let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); 20 ret.domain(domain); 21 ret 22 } 23 #[doc = "Change the `domain` field of this object."] 24 #[doc = ""] 25 #[doc = "*This API requires the following crate features to be activated: `RtcIdentityProviderDetails`*"] domain(&mut self, val: &str) -> &mut Self26 pub fn domain(&mut self, val: &str) -> &mut Self { 27 use wasm_bindgen::JsValue; 28 let r = 29 ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("domain"), &JsValue::from(val)); 30 debug_assert!( 31 r.is_ok(), 32 "setting properties should never fail on our dictionary objects" 33 ); 34 let _ = r; 35 self 36 } 37 #[doc = "Change the `protocol` field of this object."] 38 #[doc = ""] 39 #[doc = "*This API requires the following crate features to be activated: `RtcIdentityProviderDetails`*"] protocol(&mut self, val: &str) -> &mut Self40 pub fn protocol(&mut self, val: &str) -> &mut Self { 41 use wasm_bindgen::JsValue; 42 let r = ::js_sys::Reflect::set( 43 self.as_ref(), 44 &JsValue::from("protocol"), 45 &JsValue::from(val), 46 ); 47 debug_assert!( 48 r.is_ok(), 49 "setting properties should never fail on our dictionary objects" 50 ); 51 let _ = r; 52 self 53 } 54 } 55