Skip to main content

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