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