web_sys/features/
gen_ProfileTimelineStackFrame.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 = ProfileTimelineStackFrame)]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `ProfileTimelineStackFrame` dictionary."]
10 #[doc = ""]
11 #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineStackFrame`*"]
12 pub type ProfileTimelineStackFrame;
13 #[doc = "Get the `asyncCause` field of this object."]
14 #[doc = ""]
15 #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineStackFrame`*"]
16 #[wasm_bindgen(method, getter = "asyncCause")]
17 pub fn get_async_cause(this: &ProfileTimelineStackFrame) -> Option<::alloc::string::String>;
18 #[doc = "Change the `asyncCause` field of this object."]
19 #[doc = ""]
20 #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineStackFrame`*"]
21 #[wasm_bindgen(method, setter = "asyncCause")]
22 pub fn set_async_cause(this: &ProfileTimelineStackFrame, val: &str);
23 #[doc = "Get the `asyncParent` field of this object."]
24 #[doc = ""]
25 #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineStackFrame`*"]
26 #[wasm_bindgen(method, getter = "asyncParent")]
27 pub fn get_async_parent(this: &ProfileTimelineStackFrame) -> Option<::js_sys::Object>;
28 #[doc = "Change the `asyncParent` field of this object."]
29 #[doc = ""]
30 #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineStackFrame`*"]
31 #[wasm_bindgen(method, setter = "asyncParent")]
32 pub fn set_async_parent(this: &ProfileTimelineStackFrame, val: Option<&::js_sys::Object>);
33 #[doc = "Get the `column` field of this object."]
34 #[doc = ""]
35 #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineStackFrame`*"]
36 #[wasm_bindgen(method, getter = "column")]
37 pub fn get_column(this: &ProfileTimelineStackFrame) -> Option<i32>;
38 #[doc = "Change the `column` field of this object."]
39 #[doc = ""]
40 #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineStackFrame`*"]
41 #[wasm_bindgen(method, setter = "column")]
42 pub fn set_column(this: &ProfileTimelineStackFrame, val: i32);
43 #[doc = "Get the `functionDisplayName` field of this object."]
44 #[doc = ""]
45 #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineStackFrame`*"]
46 #[wasm_bindgen(method, getter = "functionDisplayName")]
47 pub fn get_function_display_name(
48 this: &ProfileTimelineStackFrame,
49 ) -> Option<::alloc::string::String>;
50 #[doc = "Change the `functionDisplayName` field of this object."]
51 #[doc = ""]
52 #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineStackFrame`*"]
53 #[wasm_bindgen(method, setter = "functionDisplayName")]
54 pub fn set_function_display_name(this: &ProfileTimelineStackFrame, val: &str);
55 #[doc = "Get the `line` field of this object."]
56 #[doc = ""]
57 #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineStackFrame`*"]
58 #[wasm_bindgen(method, getter = "line")]
59 pub fn get_line(this: &ProfileTimelineStackFrame) -> Option<i32>;
60 #[doc = "Change the `line` field of this object."]
61 #[doc = ""]
62 #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineStackFrame`*"]
63 #[wasm_bindgen(method, setter = "line")]
64 pub fn set_line(this: &ProfileTimelineStackFrame, val: i32);
65 #[doc = "Get the `parent` field of this object."]
66 #[doc = ""]
67 #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineStackFrame`*"]
68 #[wasm_bindgen(method, getter = "parent")]
69 pub fn get_parent(this: &ProfileTimelineStackFrame) -> Option<::js_sys::Object>;
70 #[doc = "Change the `parent` field of this object."]
71 #[doc = ""]
72 #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineStackFrame`*"]
73 #[wasm_bindgen(method, setter = "parent")]
74 pub fn set_parent(this: &ProfileTimelineStackFrame, val: Option<&::js_sys::Object>);
75 #[doc = "Get the `source` field of this object."]
76 #[doc = ""]
77 #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineStackFrame`*"]
78 #[wasm_bindgen(method, getter = "source")]
79 pub fn get_source(this: &ProfileTimelineStackFrame) -> Option<::alloc::string::String>;
80 #[doc = "Change the `source` field of this object."]
81 #[doc = ""]
82 #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineStackFrame`*"]
83 #[wasm_bindgen(method, setter = "source")]
84 pub fn set_source(this: &ProfileTimelineStackFrame, val: &str);
85}
86impl ProfileTimelineStackFrame {
87 #[doc = "Construct a new `ProfileTimelineStackFrame`."]
88 #[doc = ""]
89 #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineStackFrame`*"]
90 pub fn new() -> Self {
91 #[allow(unused_mut)]
92 let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
93 ret
94 }
95 #[deprecated = "Use `set_async_cause()` instead."]
96 pub fn async_cause(&mut self, val: &str) -> &mut Self {
97 self.set_async_cause(val);
98 self
99 }
100 #[deprecated = "Use `set_async_parent()` instead."]
101 pub fn async_parent(&mut self, val: Option<&::js_sys::Object>) -> &mut Self {
102 self.set_async_parent(val);
103 self
104 }
105 #[deprecated = "Use `set_column()` instead."]
106 pub fn column(&mut self, val: i32) -> &mut Self {
107 self.set_column(val);
108 self
109 }
110 #[deprecated = "Use `set_function_display_name()` instead."]
111 pub fn function_display_name(&mut self, val: &str) -> &mut Self {
112 self.set_function_display_name(val);
113 self
114 }
115 #[deprecated = "Use `set_line()` instead."]
116 pub fn line(&mut self, val: i32) -> &mut Self {
117 self.set_line(val);
118 self
119 }
120 #[deprecated = "Use `set_parent()` instead."]
121 pub fn parent(&mut self, val: Option<&::js_sys::Object>) -> &mut Self {
122 self.set_parent(val);
123 self
124 }
125 #[deprecated = "Use `set_source()` instead."]
126 pub fn source(&mut self, val: &str) -> &mut Self {
127 self.set_source(val);
128 self
129 }
130}
131impl Default for ProfileTimelineStackFrame {
132 fn default() -> Self {
133 Self::new()
134 }
135}