web_sys/features/
gen_ProfileTimelineMarker.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
    # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ProfileTimelineMarker)]
    #[derive(Debug, Clone, PartialEq, Eq)]
    #[doc = "The `ProfileTimelineMarker` dictionary."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"]
    pub type ProfileTimelineMarker;
    #[doc = "Get the `causeName` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"]
    #[wasm_bindgen(method, getter = "causeName")]
    pub fn get_cause_name(this: &ProfileTimelineMarker) -> Option<String>;
    #[doc = "Change the `causeName` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"]
    #[wasm_bindgen(method, setter = "causeName")]
    pub fn set_cause_name(this: &ProfileTimelineMarker, val: &str);
    #[doc = "Get the `end` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"]
    #[wasm_bindgen(method, getter = "end")]
    pub fn get_end(this: &ProfileTimelineMarker) -> Option<f64>;
    #[doc = "Change the `end` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"]
    #[wasm_bindgen(method, setter = "end")]
    pub fn set_end(this: &ProfileTimelineMarker, val: f64);
    #[doc = "Get the `endStack` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"]
    #[wasm_bindgen(method, getter = "endStack")]
    pub fn get_end_stack(this: &ProfileTimelineMarker) -> Option<::js_sys::Object>;
    #[doc = "Change the `endStack` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"]
    #[wasm_bindgen(method, setter = "endStack")]
    pub fn set_end_stack(this: &ProfileTimelineMarker, val: Option<&::js_sys::Object>);
    #[doc = "Get the `eventPhase` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"]
    #[wasm_bindgen(method, getter = "eventPhase")]
    pub fn get_event_phase(this: &ProfileTimelineMarker) -> Option<u16>;
    #[doc = "Change the `eventPhase` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"]
    #[wasm_bindgen(method, setter = "eventPhase")]
    pub fn set_event_phase(this: &ProfileTimelineMarker, val: u16);
    #[doc = "Get the `isAnimationOnly` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"]
    #[wasm_bindgen(method, getter = "isAnimationOnly")]
    pub fn get_is_animation_only(this: &ProfileTimelineMarker) -> Option<bool>;
    #[doc = "Change the `isAnimationOnly` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"]
    #[wasm_bindgen(method, setter = "isAnimationOnly")]
    pub fn set_is_animation_only(this: &ProfileTimelineMarker, val: bool);
    #[doc = "Get the `isOffMainThread` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"]
    #[wasm_bindgen(method, getter = "isOffMainThread")]
    pub fn get_is_off_main_thread(this: &ProfileTimelineMarker) -> Option<bool>;
    #[doc = "Change the `isOffMainThread` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"]
    #[wasm_bindgen(method, setter = "isOffMainThread")]
    pub fn set_is_off_main_thread(this: &ProfileTimelineMarker, val: bool);
    #[cfg(feature = "ProfileTimelineMessagePortOperationType")]
    #[doc = "Get the `messagePortOperation` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`, `ProfileTimelineMessagePortOperationType`*"]
    #[wasm_bindgen(method, getter = "messagePortOperation")]
    pub fn get_message_port_operation(
        this: &ProfileTimelineMarker,
    ) -> Option<ProfileTimelineMessagePortOperationType>;
    #[cfg(feature = "ProfileTimelineMessagePortOperationType")]
    #[doc = "Change the `messagePortOperation` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`, `ProfileTimelineMessagePortOperationType`*"]
    #[wasm_bindgen(method, setter = "messagePortOperation")]
    pub fn set_message_port_operation(
        this: &ProfileTimelineMarker,
        val: ProfileTimelineMessagePortOperationType,
    );
    #[doc = "Get the `name` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"]
    #[wasm_bindgen(method, getter = "name")]
    pub fn get_name(this: &ProfileTimelineMarker) -> Option<String>;
    #[doc = "Change the `name` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"]
    #[wasm_bindgen(method, setter = "name")]
    pub fn set_name(this: &ProfileTimelineMarker, val: &str);
    #[doc = "Get the `processType` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"]
    #[wasm_bindgen(method, getter = "processType")]
    pub fn get_process_type(this: &ProfileTimelineMarker) -> Option<u16>;
    #[doc = "Change the `processType` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"]
    #[wasm_bindgen(method, setter = "processType")]
    pub fn set_process_type(this: &ProfileTimelineMarker, val: u16);
    #[doc = "Get the `rectangles` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"]
    #[wasm_bindgen(method, getter = "rectangles")]
    pub fn get_rectangles(this: &ProfileTimelineMarker) -> Option<::js_sys::Array>;
    #[doc = "Change the `rectangles` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"]
    #[wasm_bindgen(method, setter = "rectangles")]
    pub fn set_rectangles(this: &ProfileTimelineMarker, val: &::wasm_bindgen::JsValue);
    #[doc = "Get the `stack` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"]
    #[wasm_bindgen(method, getter = "stack")]
    pub fn get_stack(this: &ProfileTimelineMarker) -> Option<::js_sys::Object>;
    #[doc = "Change the `stack` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"]
    #[wasm_bindgen(method, setter = "stack")]
    pub fn set_stack(this: &ProfileTimelineMarker, val: Option<&::js_sys::Object>);
    #[doc = "Get the `start` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"]
    #[wasm_bindgen(method, getter = "start")]
    pub fn get_start(this: &ProfileTimelineMarker) -> Option<f64>;
    #[doc = "Change the `start` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"]
    #[wasm_bindgen(method, setter = "start")]
    pub fn set_start(this: &ProfileTimelineMarker, val: f64);
    #[doc = "Get the `type` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"]
    #[wasm_bindgen(method, getter = "type")]
    pub fn get_type(this: &ProfileTimelineMarker) -> Option<String>;
    #[doc = "Change the `type` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"]
    #[wasm_bindgen(method, setter = "type")]
    pub fn set_type(this: &ProfileTimelineMarker, val: &str);
    #[doc = "Get the `unixTime` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"]
    #[wasm_bindgen(method, getter = "unixTime")]
    pub fn get_unix_time(this: &ProfileTimelineMarker) -> Option<f64>;
    #[doc = "Change the `unixTime` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"]
    #[wasm_bindgen(method, setter = "unixTime")]
    pub fn set_unix_time(this: &ProfileTimelineMarker, val: f64);
    #[cfg(feature = "ProfileTimelineWorkerOperationType")]
    #[doc = "Get the `workerOperation` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`, `ProfileTimelineWorkerOperationType`*"]
    #[wasm_bindgen(method, getter = "workerOperation")]
    pub fn get_worker_operation(
        this: &ProfileTimelineMarker,
    ) -> Option<ProfileTimelineWorkerOperationType>;
    #[cfg(feature = "ProfileTimelineWorkerOperationType")]
    #[doc = "Change the `workerOperation` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`, `ProfileTimelineWorkerOperationType`*"]
    #[wasm_bindgen(method, setter = "workerOperation")]
    pub fn set_worker_operation(
        this: &ProfileTimelineMarker,
        val: ProfileTimelineWorkerOperationType,
    );
}
impl ProfileTimelineMarker {
    #[doc = "Construct a new `ProfileTimelineMarker`."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"]
    pub fn new() -> Self {
        #[allow(unused_mut)]
        let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
        ret
    }
    #[deprecated = "Use `set_cause_name()` instead."]
    pub fn cause_name(&mut self, val: &str) -> &mut Self {
        self.set_cause_name(val);
        self
    }
    #[deprecated = "Use `set_end()` instead."]
    pub fn end(&mut self, val: f64) -> &mut Self {
        self.set_end(val);
        self
    }
    #[deprecated = "Use `set_end_stack()` instead."]
    pub fn end_stack(&mut self, val: Option<&::js_sys::Object>) -> &mut Self {
        self.set_end_stack(val);
        self
    }
    #[deprecated = "Use `set_event_phase()` instead."]
    pub fn event_phase(&mut self, val: u16) -> &mut Self {
        self.set_event_phase(val);
        self
    }
    #[deprecated = "Use `set_is_animation_only()` instead."]
    pub fn is_animation_only(&mut self, val: bool) -> &mut Self {
        self.set_is_animation_only(val);
        self
    }
    #[deprecated = "Use `set_is_off_main_thread()` instead."]
    pub fn is_off_main_thread(&mut self, val: bool) -> &mut Self {
        self.set_is_off_main_thread(val);
        self
    }
    #[cfg(feature = "ProfileTimelineMessagePortOperationType")]
    #[deprecated = "Use `set_message_port_operation()` instead."]
    pub fn message_port_operation(
        &mut self,
        val: ProfileTimelineMessagePortOperationType,
    ) -> &mut Self {
        self.set_message_port_operation(val);
        self
    }
    #[deprecated = "Use `set_name()` instead."]
    pub fn name(&mut self, val: &str) -> &mut Self {
        self.set_name(val);
        self
    }
    #[deprecated = "Use `set_process_type()` instead."]
    pub fn process_type(&mut self, val: u16) -> &mut Self {
        self.set_process_type(val);
        self
    }
    #[deprecated = "Use `set_rectangles()` instead."]
    pub fn rectangles(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
        self.set_rectangles(val);
        self
    }
    #[deprecated = "Use `set_stack()` instead."]
    pub fn stack(&mut self, val: Option<&::js_sys::Object>) -> &mut Self {
        self.set_stack(val);
        self
    }
    #[deprecated = "Use `set_start()` instead."]
    pub fn start(&mut self, val: f64) -> &mut Self {
        self.set_start(val);
        self
    }
    #[deprecated = "Use `set_type()` instead."]
    pub fn type_(&mut self, val: &str) -> &mut Self {
        self.set_type(val);
        self
    }
    #[deprecated = "Use `set_unix_time()` instead."]
    pub fn unix_time(&mut self, val: f64) -> &mut Self {
        self.set_unix_time(val);
        self
    }
    #[cfg(feature = "ProfileTimelineWorkerOperationType")]
    #[deprecated = "Use `set_worker_operation()` instead."]
    pub fn worker_operation(&mut self, val: ProfileTimelineWorkerOperationType) -> &mut Self {
        self.set_worker_operation(val);
        self
    }
}
impl Default for ProfileTimelineMarker {
    fn default() -> Self {
        Self::new()
    }
}