web_sys/features/
gen_SFrameTransformErrorEventInit.rs

1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[cfg(web_sys_unstable_apis)]
6#[wasm_bindgen]
7extern "C" {
8    # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SFrameTransformErrorEventInit)]
9    #[derive(Debug, Clone, PartialEq, Eq)]
10    #[doc = "The `SFrameTransformErrorEventInit` dictionary."]
11    #[doc = ""]
12    #[doc = "*This API requires the following crate features to be activated: `SFrameTransformErrorEventInit`*"]
13    #[doc = ""]
14    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
15    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
16    pub type SFrameTransformErrorEventInit;
17    #[cfg(web_sys_unstable_apis)]
18    #[doc = "Get the `bubbles` field of this object."]
19    #[doc = ""]
20    #[doc = "*This API requires the following crate features to be activated: `SFrameTransformErrorEventInit`*"]
21    #[doc = ""]
22    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
23    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
24    #[wasm_bindgen(method, getter = "bubbles")]
25    pub fn get_bubbles(this: &SFrameTransformErrorEventInit) -> Option<bool>;
26    #[cfg(web_sys_unstable_apis)]
27    #[doc = "Change the `bubbles` field of this object."]
28    #[doc = ""]
29    #[doc = "*This API requires the following crate features to be activated: `SFrameTransformErrorEventInit`*"]
30    #[doc = ""]
31    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
32    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
33    #[wasm_bindgen(method, setter = "bubbles")]
34    pub fn set_bubbles(this: &SFrameTransformErrorEventInit, val: bool);
35    #[cfg(web_sys_unstable_apis)]
36    #[doc = "Get the `cancelable` field of this object."]
37    #[doc = ""]
38    #[doc = "*This API requires the following crate features to be activated: `SFrameTransformErrorEventInit`*"]
39    #[doc = ""]
40    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
41    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
42    #[wasm_bindgen(method, getter = "cancelable")]
43    pub fn get_cancelable(this: &SFrameTransformErrorEventInit) -> Option<bool>;
44    #[cfg(web_sys_unstable_apis)]
45    #[doc = "Change the `cancelable` field of this object."]
46    #[doc = ""]
47    #[doc = "*This API requires the following crate features to be activated: `SFrameTransformErrorEventInit`*"]
48    #[doc = ""]
49    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
50    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
51    #[wasm_bindgen(method, setter = "cancelable")]
52    pub fn set_cancelable(this: &SFrameTransformErrorEventInit, val: bool);
53    #[cfg(web_sys_unstable_apis)]
54    #[doc = "Get the `composed` field of this object."]
55    #[doc = ""]
56    #[doc = "*This API requires the following crate features to be activated: `SFrameTransformErrorEventInit`*"]
57    #[doc = ""]
58    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
59    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
60    #[wasm_bindgen(method, getter = "composed")]
61    pub fn get_composed(this: &SFrameTransformErrorEventInit) -> Option<bool>;
62    #[cfg(web_sys_unstable_apis)]
63    #[doc = "Change the `composed` field of this object."]
64    #[doc = ""]
65    #[doc = "*This API requires the following crate features to be activated: `SFrameTransformErrorEventInit`*"]
66    #[doc = ""]
67    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
68    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
69    #[wasm_bindgen(method, setter = "composed")]
70    pub fn set_composed(this: &SFrameTransformErrorEventInit, val: bool);
71    #[cfg(web_sys_unstable_apis)]
72    #[cfg(feature = "SFrameTransformErrorEventType")]
73    #[doc = "Get the `errorType` field of this object."]
74    #[doc = ""]
75    #[doc = "*This API requires the following crate features to be activated: `SFrameTransformErrorEventInit`, `SFrameTransformErrorEventType`*"]
76    #[doc = ""]
77    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
78    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
79    #[wasm_bindgen(method, getter = "errorType")]
80    pub fn get_error_type(this: &SFrameTransformErrorEventInit) -> SFrameTransformErrorEventType;
81    #[cfg(web_sys_unstable_apis)]
82    #[cfg(feature = "SFrameTransformErrorEventType")]
83    #[doc = "Change the `errorType` field of this object."]
84    #[doc = ""]
85    #[doc = "*This API requires the following crate features to be activated: `SFrameTransformErrorEventInit`, `SFrameTransformErrorEventType`*"]
86    #[doc = ""]
87    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
88    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
89    #[wasm_bindgen(method, setter = "errorType")]
90    pub fn set_error_type(this: &SFrameTransformErrorEventInit, val: SFrameTransformErrorEventType);
91    #[cfg(web_sys_unstable_apis)]
92    #[doc = "Get the `frame` field of this object."]
93    #[doc = ""]
94    #[doc = "*This API requires the following crate features to be activated: `SFrameTransformErrorEventInit`*"]
95    #[doc = ""]
96    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
97    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
98    #[wasm_bindgen(method, getter = "frame")]
99    pub fn get_frame(this: &SFrameTransformErrorEventInit) -> ::wasm_bindgen::JsValue;
100    #[cfg(web_sys_unstable_apis)]
101    #[doc = "Change the `frame` field of this object."]
102    #[doc = ""]
103    #[doc = "*This API requires the following crate features to be activated: `SFrameTransformErrorEventInit`*"]
104    #[doc = ""]
105    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
106    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
107    #[wasm_bindgen(method, setter = "frame")]
108    pub fn set_frame(this: &SFrameTransformErrorEventInit, val: &::wasm_bindgen::JsValue);
109    #[cfg(web_sys_unstable_apis)]
110    #[doc = "Get the `keyID` field of this object."]
111    #[doc = ""]
112    #[doc = "*This API requires the following crate features to be activated: `SFrameTransformErrorEventInit`*"]
113    #[doc = ""]
114    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
115    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
116    #[wasm_bindgen(method, getter = "keyID")]
117    pub fn get_key_id(this: &SFrameTransformErrorEventInit) -> ::wasm_bindgen::JsValue;
118    #[cfg(web_sys_unstable_apis)]
119    #[doc = "Change the `keyID` field of this object."]
120    #[doc = ""]
121    #[doc = "*This API requires the following crate features to be activated: `SFrameTransformErrorEventInit`*"]
122    #[doc = ""]
123    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
124    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
125    #[wasm_bindgen(method, setter = "keyID")]
126    pub fn set_key_id(this: &SFrameTransformErrorEventInit, val: &::wasm_bindgen::JsValue);
127}
128#[cfg(web_sys_unstable_apis)]
129impl SFrameTransformErrorEventInit {
130    #[cfg(feature = "SFrameTransformErrorEventType")]
131    #[doc = "Construct a new `SFrameTransformErrorEventInit`."]
132    #[doc = ""]
133    #[doc = "*This API requires the following crate features to be activated: `SFrameTransformErrorEventInit`, `SFrameTransformErrorEventType`*"]
134    #[doc = ""]
135    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
136    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
137    pub fn new(error_type: SFrameTransformErrorEventType, frame: &::wasm_bindgen::JsValue) -> Self {
138        #[allow(unused_mut)]
139        let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
140        ret.set_error_type(error_type);
141        ret.set_frame(frame);
142        ret
143    }
144    #[cfg(web_sys_unstable_apis)]
145    #[deprecated = "Use `set_bubbles()` instead."]
146    pub fn bubbles(&mut self, val: bool) -> &mut Self {
147        self.set_bubbles(val);
148        self
149    }
150    #[cfg(web_sys_unstable_apis)]
151    #[deprecated = "Use `set_cancelable()` instead."]
152    pub fn cancelable(&mut self, val: bool) -> &mut Self {
153        self.set_cancelable(val);
154        self
155    }
156    #[cfg(web_sys_unstable_apis)]
157    #[deprecated = "Use `set_composed()` instead."]
158    pub fn composed(&mut self, val: bool) -> &mut Self {
159        self.set_composed(val);
160        self
161    }
162    #[cfg(web_sys_unstable_apis)]
163    #[cfg(feature = "SFrameTransformErrorEventType")]
164    #[deprecated = "Use `set_error_type()` instead."]
165    pub fn error_type(&mut self, val: SFrameTransformErrorEventType) -> &mut Self {
166        self.set_error_type(val);
167        self
168    }
169    #[cfg(web_sys_unstable_apis)]
170    #[deprecated = "Use `set_frame()` instead."]
171    pub fn frame(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
172        self.set_frame(val);
173        self
174    }
175    #[cfg(web_sys_unstable_apis)]
176    #[deprecated = "Use `set_key_id()` instead."]
177    pub fn key_id(&mut self, val: Option<&::wasm_bindgen::JsValue>) -> &mut Self {
178        self.set_key_id(val.unwrap_or(&::wasm_bindgen::JsValue::NULL));
179        self
180    }
181}