web_sys/features/
gen_ConsoleStackEntry.rs

1#![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 = ConsoleStackEntry)]
8    #[derive(Debug, Clone, PartialEq, Eq)]
9    #[doc = "The `ConsoleStackEntry` dictionary."]
10    #[doc = ""]
11    #[doc = "*This API requires the following crate features to be activated: `ConsoleStackEntry`*"]
12    pub type ConsoleStackEntry;
13    #[doc = "Get the `asyncCause` field of this object."]
14    #[doc = ""]
15    #[doc = "*This API requires the following crate features to be activated: `ConsoleStackEntry`*"]
16    #[wasm_bindgen(method, getter = "asyncCause")]
17    pub fn get_async_cause(this: &ConsoleStackEntry) -> 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: `ConsoleStackEntry`*"]
21    #[wasm_bindgen(method, setter = "asyncCause")]
22    pub fn set_async_cause(this: &ConsoleStackEntry, val: Option<&str>);
23    #[doc = "Get the `columnNumber` field of this object."]
24    #[doc = ""]
25    #[doc = "*This API requires the following crate features to be activated: `ConsoleStackEntry`*"]
26    #[wasm_bindgen(method, getter = "columnNumber")]
27    pub fn get_column_number(this: &ConsoleStackEntry) -> Option<u32>;
28    #[doc = "Change the `columnNumber` field of this object."]
29    #[doc = ""]
30    #[doc = "*This API requires the following crate features to be activated: `ConsoleStackEntry`*"]
31    #[wasm_bindgen(method, setter = "columnNumber")]
32    pub fn set_column_number(this: &ConsoleStackEntry, val: u32);
33    #[doc = "Get the `filename` field of this object."]
34    #[doc = ""]
35    #[doc = "*This API requires the following crate features to be activated: `ConsoleStackEntry`*"]
36    #[wasm_bindgen(method, getter = "filename")]
37    pub fn get_filename(this: &ConsoleStackEntry) -> Option<::alloc::string::String>;
38    #[doc = "Change the `filename` field of this object."]
39    #[doc = ""]
40    #[doc = "*This API requires the following crate features to be activated: `ConsoleStackEntry`*"]
41    #[wasm_bindgen(method, setter = "filename")]
42    pub fn set_filename(this: &ConsoleStackEntry, val: &str);
43    #[doc = "Get the `functionName` field of this object."]
44    #[doc = ""]
45    #[doc = "*This API requires the following crate features to be activated: `ConsoleStackEntry`*"]
46    #[wasm_bindgen(method, getter = "functionName")]
47    pub fn get_function_name(this: &ConsoleStackEntry) -> Option<::alloc::string::String>;
48    #[doc = "Change the `functionName` field of this object."]
49    #[doc = ""]
50    #[doc = "*This API requires the following crate features to be activated: `ConsoleStackEntry`*"]
51    #[wasm_bindgen(method, setter = "functionName")]
52    pub fn set_function_name(this: &ConsoleStackEntry, val: &str);
53    #[doc = "Get the `lineNumber` field of this object."]
54    #[doc = ""]
55    #[doc = "*This API requires the following crate features to be activated: `ConsoleStackEntry`*"]
56    #[wasm_bindgen(method, getter = "lineNumber")]
57    pub fn get_line_number(this: &ConsoleStackEntry) -> Option<u32>;
58    #[doc = "Change the `lineNumber` field of this object."]
59    #[doc = ""]
60    #[doc = "*This API requires the following crate features to be activated: `ConsoleStackEntry`*"]
61    #[wasm_bindgen(method, setter = "lineNumber")]
62    pub fn set_line_number(this: &ConsoleStackEntry, val: u32);
63}
64impl ConsoleStackEntry {
65    #[doc = "Construct a new `ConsoleStackEntry`."]
66    #[doc = ""]
67    #[doc = "*This API requires the following crate features to be activated: `ConsoleStackEntry`*"]
68    pub fn new() -> Self {
69        #[allow(unused_mut)]
70        let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
71        ret
72    }
73    #[deprecated = "Use `set_async_cause()` instead."]
74    pub fn async_cause(&mut self, val: Option<&str>) -> &mut Self {
75        self.set_async_cause(val);
76        self
77    }
78    #[deprecated = "Use `set_column_number()` instead."]
79    pub fn column_number(&mut self, val: u32) -> &mut Self {
80        self.set_column_number(val);
81        self
82    }
83    #[deprecated = "Use `set_filename()` instead."]
84    pub fn filename(&mut self, val: &str) -> &mut Self {
85        self.set_filename(val);
86        self
87    }
88    #[deprecated = "Use `set_function_name()` instead."]
89    pub fn function_name(&mut self, val: &str) -> &mut Self {
90        self.set_function_name(val);
91        self
92    }
93    #[deprecated = "Use `set_line_number()` instead."]
94    pub fn line_number(&mut self, val: u32) -> &mut Self {
95        self.set_line_number(val);
96        self
97    }
98}
99impl Default for ConsoleStackEntry {
100    fn default() -> Self {
101        Self::new()
102    }
103}