web_sys/features/
gen_PluginCrashedEventInit.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 = PluginCrashedEventInit)]
8    #[derive(Debug, Clone, PartialEq, Eq)]
9    #[doc = "The `PluginCrashedEventInit` dictionary."]
10    #[doc = ""]
11    #[doc = "*This API requires the following crate features to be activated: `PluginCrashedEventInit`*"]
12    pub type PluginCrashedEventInit;
13    #[doc = "Get the `bubbles` field of this object."]
14    #[doc = ""]
15    #[doc = "*This API requires the following crate features to be activated: `PluginCrashedEventInit`*"]
16    #[wasm_bindgen(method, getter = "bubbles")]
17    pub fn get_bubbles(this: &PluginCrashedEventInit) -> Option<bool>;
18    #[doc = "Change the `bubbles` field of this object."]
19    #[doc = ""]
20    #[doc = "*This API requires the following crate features to be activated: `PluginCrashedEventInit`*"]
21    #[wasm_bindgen(method, setter = "bubbles")]
22    pub fn set_bubbles(this: &PluginCrashedEventInit, val: bool);
23    #[doc = "Get the `cancelable` field of this object."]
24    #[doc = ""]
25    #[doc = "*This API requires the following crate features to be activated: `PluginCrashedEventInit`*"]
26    #[wasm_bindgen(method, getter = "cancelable")]
27    pub fn get_cancelable(this: &PluginCrashedEventInit) -> Option<bool>;
28    #[doc = "Change the `cancelable` field of this object."]
29    #[doc = ""]
30    #[doc = "*This API requires the following crate features to be activated: `PluginCrashedEventInit`*"]
31    #[wasm_bindgen(method, setter = "cancelable")]
32    pub fn set_cancelable(this: &PluginCrashedEventInit, val: bool);
33    #[doc = "Get the `composed` field of this object."]
34    #[doc = ""]
35    #[doc = "*This API requires the following crate features to be activated: `PluginCrashedEventInit`*"]
36    #[wasm_bindgen(method, getter = "composed")]
37    pub fn get_composed(this: &PluginCrashedEventInit) -> Option<bool>;
38    #[doc = "Change the `composed` field of this object."]
39    #[doc = ""]
40    #[doc = "*This API requires the following crate features to be activated: `PluginCrashedEventInit`*"]
41    #[wasm_bindgen(method, setter = "composed")]
42    pub fn set_composed(this: &PluginCrashedEventInit, val: bool);
43    #[doc = "Get the `browserDumpID` field of this object."]
44    #[doc = ""]
45    #[doc = "*This API requires the following crate features to be activated: `PluginCrashedEventInit`*"]
46    #[wasm_bindgen(method, getter = "browserDumpID")]
47    pub fn get_browser_dump_id(this: &PluginCrashedEventInit) -> Option<::alloc::string::String>;
48    #[doc = "Change the `browserDumpID` field of this object."]
49    #[doc = ""]
50    #[doc = "*This API requires the following crate features to be activated: `PluginCrashedEventInit`*"]
51    #[wasm_bindgen(method, setter = "browserDumpID")]
52    pub fn set_browser_dump_id(this: &PluginCrashedEventInit, val: Option<&str>);
53    #[doc = "Get the `gmpPlugin` field of this object."]
54    #[doc = ""]
55    #[doc = "*This API requires the following crate features to be activated: `PluginCrashedEventInit`*"]
56    #[wasm_bindgen(method, getter = "gmpPlugin")]
57    pub fn get_gmp_plugin(this: &PluginCrashedEventInit) -> Option<bool>;
58    #[doc = "Change the `gmpPlugin` field of this object."]
59    #[doc = ""]
60    #[doc = "*This API requires the following crate features to be activated: `PluginCrashedEventInit`*"]
61    #[wasm_bindgen(method, setter = "gmpPlugin")]
62    pub fn set_gmp_plugin(this: &PluginCrashedEventInit, val: bool);
63    #[doc = "Get the `pluginDumpID` field of this object."]
64    #[doc = ""]
65    #[doc = "*This API requires the following crate features to be activated: `PluginCrashedEventInit`*"]
66    #[wasm_bindgen(method, getter = "pluginDumpID")]
67    pub fn get_plugin_dump_id(this: &PluginCrashedEventInit) -> Option<::alloc::string::String>;
68    #[doc = "Change the `pluginDumpID` field of this object."]
69    #[doc = ""]
70    #[doc = "*This API requires the following crate features to be activated: `PluginCrashedEventInit`*"]
71    #[wasm_bindgen(method, setter = "pluginDumpID")]
72    pub fn set_plugin_dump_id(this: &PluginCrashedEventInit, val: &str);
73    #[doc = "Get the `pluginFilename` field of this object."]
74    #[doc = ""]
75    #[doc = "*This API requires the following crate features to be activated: `PluginCrashedEventInit`*"]
76    #[wasm_bindgen(method, getter = "pluginFilename")]
77    pub fn get_plugin_filename(this: &PluginCrashedEventInit) -> Option<::alloc::string::String>;
78    #[doc = "Change the `pluginFilename` field of this object."]
79    #[doc = ""]
80    #[doc = "*This API requires the following crate features to be activated: `PluginCrashedEventInit`*"]
81    #[wasm_bindgen(method, setter = "pluginFilename")]
82    pub fn set_plugin_filename(this: &PluginCrashedEventInit, val: Option<&str>);
83    #[doc = "Get the `pluginID` field of this object."]
84    #[doc = ""]
85    #[doc = "*This API requires the following crate features to be activated: `PluginCrashedEventInit`*"]
86    #[wasm_bindgen(method, getter = "pluginID")]
87    pub fn get_plugin_id(this: &PluginCrashedEventInit) -> Option<u32>;
88    #[doc = "Change the `pluginID` field of this object."]
89    #[doc = ""]
90    #[doc = "*This API requires the following crate features to be activated: `PluginCrashedEventInit`*"]
91    #[wasm_bindgen(method, setter = "pluginID")]
92    pub fn set_plugin_id(this: &PluginCrashedEventInit, val: u32);
93    #[doc = "Get the `pluginName` field of this object."]
94    #[doc = ""]
95    #[doc = "*This API requires the following crate features to be activated: `PluginCrashedEventInit`*"]
96    #[wasm_bindgen(method, getter = "pluginName")]
97    pub fn get_plugin_name(this: &PluginCrashedEventInit) -> Option<::alloc::string::String>;
98    #[doc = "Change the `pluginName` field of this object."]
99    #[doc = ""]
100    #[doc = "*This API requires the following crate features to be activated: `PluginCrashedEventInit`*"]
101    #[wasm_bindgen(method, setter = "pluginName")]
102    pub fn set_plugin_name(this: &PluginCrashedEventInit, val: &str);
103    #[doc = "Get the `submittedCrashReport` field of this object."]
104    #[doc = ""]
105    #[doc = "*This API requires the following crate features to be activated: `PluginCrashedEventInit`*"]
106    #[wasm_bindgen(method, getter = "submittedCrashReport")]
107    pub fn get_submitted_crash_report(this: &PluginCrashedEventInit) -> Option<bool>;
108    #[doc = "Change the `submittedCrashReport` field of this object."]
109    #[doc = ""]
110    #[doc = "*This API requires the following crate features to be activated: `PluginCrashedEventInit`*"]
111    #[wasm_bindgen(method, setter = "submittedCrashReport")]
112    pub fn set_submitted_crash_report(this: &PluginCrashedEventInit, val: bool);
113}
114impl PluginCrashedEventInit {
115    #[doc = "Construct a new `PluginCrashedEventInit`."]
116    #[doc = ""]
117    #[doc = "*This API requires the following crate features to be activated: `PluginCrashedEventInit`*"]
118    pub fn new() -> Self {
119        #[allow(unused_mut)]
120        let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
121        ret
122    }
123    #[deprecated = "Use `set_bubbles()` instead."]
124    pub fn bubbles(&mut self, val: bool) -> &mut Self {
125        self.set_bubbles(val);
126        self
127    }
128    #[deprecated = "Use `set_cancelable()` instead."]
129    pub fn cancelable(&mut self, val: bool) -> &mut Self {
130        self.set_cancelable(val);
131        self
132    }
133    #[deprecated = "Use `set_composed()` instead."]
134    pub fn composed(&mut self, val: bool) -> &mut Self {
135        self.set_composed(val);
136        self
137    }
138    #[deprecated = "Use `set_browser_dump_id()` instead."]
139    pub fn browser_dump_id(&mut self, val: Option<&str>) -> &mut Self {
140        self.set_browser_dump_id(val);
141        self
142    }
143    #[deprecated = "Use `set_gmp_plugin()` instead."]
144    pub fn gmp_plugin(&mut self, val: bool) -> &mut Self {
145        self.set_gmp_plugin(val);
146        self
147    }
148    #[deprecated = "Use `set_plugin_dump_id()` instead."]
149    pub fn plugin_dump_id(&mut self, val: &str) -> &mut Self {
150        self.set_plugin_dump_id(val);
151        self
152    }
153    #[deprecated = "Use `set_plugin_filename()` instead."]
154    pub fn plugin_filename(&mut self, val: Option<&str>) -> &mut Self {
155        self.set_plugin_filename(val);
156        self
157    }
158    #[deprecated = "Use `set_plugin_id()` instead."]
159    pub fn plugin_id(&mut self, val: u32) -> &mut Self {
160        self.set_plugin_id(val);
161        self
162    }
163    #[deprecated = "Use `set_plugin_name()` instead."]
164    pub fn plugin_name(&mut self, val: &str) -> &mut Self {
165        self.set_plugin_name(val);
166        self
167    }
168    #[deprecated = "Use `set_submitted_crash_report()` instead."]
169    pub fn submitted_crash_report(&mut self, val: bool) -> &mut Self {
170        self.set_submitted_crash_report(val);
171        self
172    }
173}
174impl Default for PluginCrashedEventInit {
175    fn default() -> Self {
176        Self::new()
177    }
178}