web_sys/features/
gen_ConsoleEvent.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 = ConsoleEvent)]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `ConsoleEvent` dictionary."]
10 #[doc = ""]
11 #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"]
12 pub type ConsoleEvent;
13 #[doc = "Get the `ID` field of this object."]
14 #[doc = ""]
15 #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"]
16 #[wasm_bindgen(method, getter = "ID")]
17 pub fn get_id(this: &ConsoleEvent) -> ::wasm_bindgen::JsValue;
18 #[doc = "Change the `ID` field of this object."]
19 #[doc = ""]
20 #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"]
21 #[wasm_bindgen(method, setter = "ID")]
22 pub fn set_id(this: &ConsoleEvent, val: &::wasm_bindgen::JsValue);
23 #[doc = "Change the `ID` field of this object."]
24 #[doc = ""]
25 #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"]
26 #[wasm_bindgen(method, setter = "ID")]
27 pub fn set_id_u32(this: &ConsoleEvent, val: u32);
28 #[doc = "Change the `ID` field of this object."]
29 #[doc = ""]
30 #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"]
31 #[wasm_bindgen(method, setter = "ID")]
32 pub fn set_id_f64(this: &ConsoleEvent, val: f64);
33 #[doc = "Change the `ID` field of this object."]
34 #[doc = ""]
35 #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"]
36 #[wasm_bindgen(method, setter = "ID")]
37 pub fn set_id_str(this: &ConsoleEvent, val: &str);
38 #[doc = "Get the `addonId` field of this object."]
39 #[doc = ""]
40 #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"]
41 #[wasm_bindgen(method, getter = "addonId")]
42 pub fn get_addon_id(this: &ConsoleEvent) -> Option<::alloc::string::String>;
43 #[doc = "Change the `addonId` field of this object."]
44 #[doc = ""]
45 #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"]
46 #[wasm_bindgen(method, setter = "addonId")]
47 pub fn set_addon_id(this: &ConsoleEvent, val: &str);
48 #[doc = "Get the `arguments` field of this object."]
49 #[doc = ""]
50 #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"]
51 #[wasm_bindgen(method, getter = "arguments")]
52 pub fn get_arguments(this: &ConsoleEvent) -> Option<::js_sys::Array>;
53 #[doc = "Change the `arguments` field of this object."]
54 #[doc = ""]
55 #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"]
56 #[wasm_bindgen(method, setter = "arguments")]
57 pub fn set_arguments(this: &ConsoleEvent, val: &::wasm_bindgen::JsValue);
58 #[doc = "Get the `columnNumber` field of this object."]
59 #[doc = ""]
60 #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"]
61 #[wasm_bindgen(method, getter = "columnNumber")]
62 pub fn get_column_number(this: &ConsoleEvent) -> Option<u32>;
63 #[doc = "Change the `columnNumber` field of this object."]
64 #[doc = ""]
65 #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"]
66 #[wasm_bindgen(method, setter = "columnNumber")]
67 pub fn set_column_number(this: &ConsoleEvent, val: u32);
68 #[doc = "Get the `consoleID` field of this object."]
69 #[doc = ""]
70 #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"]
71 #[wasm_bindgen(method, getter = "consoleID")]
72 pub fn get_console_id(this: &ConsoleEvent) -> Option<::alloc::string::String>;
73 #[doc = "Change the `consoleID` field of this object."]
74 #[doc = ""]
75 #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"]
76 #[wasm_bindgen(method, setter = "consoleID")]
77 pub fn set_console_id(this: &ConsoleEvent, val: &str);
78 #[doc = "Get the `counter` field of this object."]
79 #[doc = ""]
80 #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"]
81 #[wasm_bindgen(method, getter = "counter")]
82 pub fn get_counter(this: &ConsoleEvent) -> ::wasm_bindgen::JsValue;
83 #[doc = "Change the `counter` field of this object."]
84 #[doc = ""]
85 #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"]
86 #[wasm_bindgen(method, setter = "counter")]
87 pub fn set_counter(this: &ConsoleEvent, val: &::wasm_bindgen::JsValue);
88 #[doc = "Get the `filename` field of this object."]
89 #[doc = ""]
90 #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"]
91 #[wasm_bindgen(method, getter = "filename")]
92 pub fn get_filename(this: &ConsoleEvent) -> Option<::alloc::string::String>;
93 #[doc = "Change the `filename` field of this object."]
94 #[doc = ""]
95 #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"]
96 #[wasm_bindgen(method, setter = "filename")]
97 pub fn set_filename(this: &ConsoleEvent, val: &str);
98 #[doc = "Get the `functionName` field of this object."]
99 #[doc = ""]
100 #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"]
101 #[wasm_bindgen(method, getter = "functionName")]
102 pub fn get_function_name(this: &ConsoleEvent) -> Option<::alloc::string::String>;
103 #[doc = "Change the `functionName` field of this object."]
104 #[doc = ""]
105 #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"]
106 #[wasm_bindgen(method, setter = "functionName")]
107 pub fn set_function_name(this: &ConsoleEvent, val: &str);
108 #[doc = "Get the `groupName` field of this object."]
109 #[doc = ""]
110 #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"]
111 #[wasm_bindgen(method, getter = "groupName")]
112 pub fn get_group_name(this: &ConsoleEvent) -> Option<::alloc::string::String>;
113 #[doc = "Change the `groupName` field of this object."]
114 #[doc = ""]
115 #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"]
116 #[wasm_bindgen(method, setter = "groupName")]
117 pub fn set_group_name(this: &ConsoleEvent, val: &str);
118 #[doc = "Get the `innerID` field of this object."]
119 #[doc = ""]
120 #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"]
121 #[wasm_bindgen(method, getter = "innerID")]
122 pub fn get_inner_id(this: &ConsoleEvent) -> ::wasm_bindgen::JsValue;
123 #[doc = "Change the `innerID` field of this object."]
124 #[doc = ""]
125 #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"]
126 #[wasm_bindgen(method, setter = "innerID")]
127 pub fn set_inner_id(this: &ConsoleEvent, val: &::wasm_bindgen::JsValue);
128 #[doc = "Change the `innerID` field of this object."]
129 #[doc = ""]
130 #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"]
131 #[wasm_bindgen(method, setter = "innerID")]
132 pub fn set_inner_id_u32(this: &ConsoleEvent, val: u32);
133 #[doc = "Change the `innerID` field of this object."]
134 #[doc = ""]
135 #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"]
136 #[wasm_bindgen(method, setter = "innerID")]
137 pub fn set_inner_id_f64(this: &ConsoleEvent, val: f64);
138 #[doc = "Change the `innerID` field of this object."]
139 #[doc = ""]
140 #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"]
141 #[wasm_bindgen(method, setter = "innerID")]
142 pub fn set_inner_id_str(this: &ConsoleEvent, val: &str);
143 #[doc = "Get the `level` field of this object."]
144 #[doc = ""]
145 #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"]
146 #[wasm_bindgen(method, getter = "level")]
147 pub fn get_level(this: &ConsoleEvent) -> Option<::alloc::string::String>;
148 #[doc = "Change the `level` field of this object."]
149 #[doc = ""]
150 #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"]
151 #[wasm_bindgen(method, setter = "level")]
152 pub fn set_level(this: &ConsoleEvent, val: &str);
153 #[doc = "Get the `lineNumber` field of this object."]
154 #[doc = ""]
155 #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"]
156 #[wasm_bindgen(method, getter = "lineNumber")]
157 pub fn get_line_number(this: &ConsoleEvent) -> Option<u32>;
158 #[doc = "Change the `lineNumber` field of this object."]
159 #[doc = ""]
160 #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"]
161 #[wasm_bindgen(method, setter = "lineNumber")]
162 pub fn set_line_number(this: &ConsoleEvent, val: u32);
163 #[doc = "Get the `prefix` field of this object."]
164 #[doc = ""]
165 #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"]
166 #[wasm_bindgen(method, getter = "prefix")]
167 pub fn get_prefix(this: &ConsoleEvent) -> Option<::alloc::string::String>;
168 #[doc = "Change the `prefix` field of this object."]
169 #[doc = ""]
170 #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"]
171 #[wasm_bindgen(method, setter = "prefix")]
172 pub fn set_prefix(this: &ConsoleEvent, val: &str);
173 #[doc = "Get the `private` field of this object."]
174 #[doc = ""]
175 #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"]
176 #[wasm_bindgen(method, getter = "private")]
177 pub fn get_private(this: &ConsoleEvent) -> Option<bool>;
178 #[doc = "Change the `private` field of this object."]
179 #[doc = ""]
180 #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"]
181 #[wasm_bindgen(method, setter = "private")]
182 pub fn set_private(this: &ConsoleEvent, val: bool);
183 #[doc = "Get the `styles` field of this object."]
184 #[doc = ""]
185 #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"]
186 #[wasm_bindgen(method, getter = "styles")]
187 pub fn get_styles(this: &ConsoleEvent) -> Option<::js_sys::Array>;
188 #[doc = "Change the `styles` field of this object."]
189 #[doc = ""]
190 #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"]
191 #[wasm_bindgen(method, setter = "styles")]
192 pub fn set_styles(this: &ConsoleEvent, val: &::wasm_bindgen::JsValue);
193 #[doc = "Get the `timeStamp` field of this object."]
194 #[doc = ""]
195 #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"]
196 #[wasm_bindgen(method, getter = "timeStamp")]
197 pub fn get_time_stamp(this: &ConsoleEvent) -> Option<f64>;
198 #[doc = "Change the `timeStamp` field of this object."]
199 #[doc = ""]
200 #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"]
201 #[wasm_bindgen(method, setter = "timeStamp")]
202 pub fn set_time_stamp(this: &ConsoleEvent, val: f64);
203 #[doc = "Get the `timer` field of this object."]
204 #[doc = ""]
205 #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"]
206 #[wasm_bindgen(method, getter = "timer")]
207 pub fn get_timer(this: &ConsoleEvent) -> ::wasm_bindgen::JsValue;
208 #[doc = "Change the `timer` field of this object."]
209 #[doc = ""]
210 #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"]
211 #[wasm_bindgen(method, setter = "timer")]
212 pub fn set_timer(this: &ConsoleEvent, val: &::wasm_bindgen::JsValue);
213}
214impl ConsoleEvent {
215 #[doc = "Construct a new `ConsoleEvent`."]
216 #[doc = ""]
217 #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"]
218 pub fn new() -> Self {
219 #[allow(unused_mut)]
220 let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
221 ret
222 }
223 #[deprecated = "Use `set_id()` instead."]
224 pub fn id(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
225 self.set_id(val);
226 self
227 }
228 #[deprecated = "Use `set_addon_id()` instead."]
229 pub fn addon_id(&mut self, val: &str) -> &mut Self {
230 self.set_addon_id(val);
231 self
232 }
233 #[deprecated = "Use `set_arguments()` instead."]
234 pub fn arguments(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
235 self.set_arguments(val);
236 self
237 }
238 #[deprecated = "Use `set_column_number()` instead."]
239 pub fn column_number(&mut self, val: u32) -> &mut Self {
240 self.set_column_number(val);
241 self
242 }
243 #[deprecated = "Use `set_console_id()` instead."]
244 pub fn console_id(&mut self, val: &str) -> &mut Self {
245 self.set_console_id(val);
246 self
247 }
248 #[deprecated = "Use `set_counter()` instead."]
249 pub fn counter(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
250 self.set_counter(val);
251 self
252 }
253 #[deprecated = "Use `set_filename()` instead."]
254 pub fn filename(&mut self, val: &str) -> &mut Self {
255 self.set_filename(val);
256 self
257 }
258 #[deprecated = "Use `set_function_name()` instead."]
259 pub fn function_name(&mut self, val: &str) -> &mut Self {
260 self.set_function_name(val);
261 self
262 }
263 #[deprecated = "Use `set_group_name()` instead."]
264 pub fn group_name(&mut self, val: &str) -> &mut Self {
265 self.set_group_name(val);
266 self
267 }
268 #[deprecated = "Use `set_inner_id()` instead."]
269 pub fn inner_id(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
270 self.set_inner_id(val);
271 self
272 }
273 #[deprecated = "Use `set_level()` instead."]
274 pub fn level(&mut self, val: &str) -> &mut Self {
275 self.set_level(val);
276 self
277 }
278 #[deprecated = "Use `set_line_number()` instead."]
279 pub fn line_number(&mut self, val: u32) -> &mut Self {
280 self.set_line_number(val);
281 self
282 }
283 #[deprecated = "Use `set_prefix()` instead."]
284 pub fn prefix(&mut self, val: &str) -> &mut Self {
285 self.set_prefix(val);
286 self
287 }
288 #[deprecated = "Use `set_private()` instead."]
289 pub fn private(&mut self, val: bool) -> &mut Self {
290 self.set_private(val);
291 self
292 }
293 #[deprecated = "Use `set_styles()` instead."]
294 pub fn styles(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
295 self.set_styles(val);
296 self
297 }
298 #[deprecated = "Use `set_time_stamp()` instead."]
299 pub fn time_stamp(&mut self, val: f64) -> &mut Self {
300 self.set_time_stamp(val);
301 self
302 }
303 #[deprecated = "Use `set_timer()` instead."]
304 pub fn timer(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
305 self.set_timer(val);
306 self
307 }
308}
309impl Default for ConsoleEvent {
310 fn default() -> Self {
311 Self::new()
312 }
313}