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 = ProfileTimelineStackFrame)] 7 #[derive(Debug, Clone, PartialEq, Eq)] 8 #[doc = "The `ProfileTimelineStackFrame` dictionary."] 9 #[doc = ""] 10 #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineStackFrame`*"] 11 pub type ProfileTimelineStackFrame; 12 } 13 impl ProfileTimelineStackFrame { 14 #[doc = "Construct a new `ProfileTimelineStackFrame`."] 15 #[doc = ""] 16 #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineStackFrame`*"] new() -> Self17 pub fn new() -> Self { 18 #[allow(unused_mut)] 19 let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); 20 ret 21 } 22 #[doc = "Change the `asyncCause` field of this object."] 23 #[doc = ""] 24 #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineStackFrame`*"] async_cause(&mut self, val: &str) -> &mut Self25 pub fn async_cause(&mut self, val: &str) -> &mut Self { 26 use wasm_bindgen::JsValue; 27 let r = ::js_sys::Reflect::set( 28 self.as_ref(), 29 &JsValue::from("asyncCause"), 30 &JsValue::from(val), 31 ); 32 debug_assert!( 33 r.is_ok(), 34 "setting properties should never fail on our dictionary objects" 35 ); 36 let _ = r; 37 self 38 } 39 #[doc = "Change the `asyncParent` field of this object."] 40 #[doc = ""] 41 #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineStackFrame`*"] async_parent(&mut self, val: Option<&::js_sys::Object>) -> &mut Self42 pub fn async_parent(&mut self, val: Option<&::js_sys::Object>) -> &mut Self { 43 use wasm_bindgen::JsValue; 44 let r = ::js_sys::Reflect::set( 45 self.as_ref(), 46 &JsValue::from("asyncParent"), 47 &JsValue::from(val), 48 ); 49 debug_assert!( 50 r.is_ok(), 51 "setting properties should never fail on our dictionary objects" 52 ); 53 let _ = r; 54 self 55 } 56 #[doc = "Change the `column` field of this object."] 57 #[doc = ""] 58 #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineStackFrame`*"] column(&mut self, val: i32) -> &mut Self59 pub fn column(&mut self, val: i32) -> &mut Self { 60 use wasm_bindgen::JsValue; 61 let r = 62 ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("column"), &JsValue::from(val)); 63 debug_assert!( 64 r.is_ok(), 65 "setting properties should never fail on our dictionary objects" 66 ); 67 let _ = r; 68 self 69 } 70 #[doc = "Change the `functionDisplayName` field of this object."] 71 #[doc = ""] 72 #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineStackFrame`*"] function_display_name(&mut self, val: &str) -> &mut Self73 pub fn function_display_name(&mut self, val: &str) -> &mut Self { 74 use wasm_bindgen::JsValue; 75 let r = ::js_sys::Reflect::set( 76 self.as_ref(), 77 &JsValue::from("functionDisplayName"), 78 &JsValue::from(val), 79 ); 80 debug_assert!( 81 r.is_ok(), 82 "setting properties should never fail on our dictionary objects" 83 ); 84 let _ = r; 85 self 86 } 87 #[doc = "Change the `line` field of this object."] 88 #[doc = ""] 89 #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineStackFrame`*"] line(&mut self, val: i32) -> &mut Self90 pub fn line(&mut self, val: i32) -> &mut Self { 91 use wasm_bindgen::JsValue; 92 let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("line"), &JsValue::from(val)); 93 debug_assert!( 94 r.is_ok(), 95 "setting properties should never fail on our dictionary objects" 96 ); 97 let _ = r; 98 self 99 } 100 #[doc = "Change the `parent` field of this object."] 101 #[doc = ""] 102 #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineStackFrame`*"] parent(&mut self, val: Option<&::js_sys::Object>) -> &mut Self103 pub fn parent(&mut self, val: Option<&::js_sys::Object>) -> &mut Self { 104 use wasm_bindgen::JsValue; 105 let r = 106 ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("parent"), &JsValue::from(val)); 107 debug_assert!( 108 r.is_ok(), 109 "setting properties should never fail on our dictionary objects" 110 ); 111 let _ = r; 112 self 113 } 114 #[doc = "Change the `source` field of this object."] 115 #[doc = ""] 116 #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineStackFrame`*"] source(&mut self, val: &str) -> &mut Self117 pub fn source(&mut self, val: &str) -> &mut Self { 118 use wasm_bindgen::JsValue; 119 let r = 120 ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("source"), &JsValue::from(val)); 121 debug_assert!( 122 r.is_ok(), 123 "setting properties should never fail on our dictionary objects" 124 ); 125 let _ = r; 126 self 127 } 128 } 129