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 (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://wasm-bindgen.github.io/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://wasm-bindgen.github.io/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://wasm-bindgen.github.io/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://wasm-bindgen.github.io/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://wasm-bindgen.github.io/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://wasm-bindgen.github.io/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://wasm-bindgen.github.io/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://wasm-bindgen.github.io/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://wasm-bindgen.github.io/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://wasm-bindgen.github.io/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://wasm-bindgen.github.io/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://wasm-bindgen.github.io/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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
125    #[wasm_bindgen(method, setter = "keyID")]
126    pub fn set_key_id(this: &SFrameTransformErrorEventInit, val: Option<u32>);
127    #[cfg(web_sys_unstable_apis)]
128    #[doc = "Change the `keyID` field of this object."]
129    #[doc = ""]
130    #[doc = "*This API requires the following crate features to be activated: `SFrameTransformErrorEventInit`*"]
131    #[doc = ""]
132    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
133    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
134    #[wasm_bindgen(method, setter = "keyID")]
135    pub fn set_key_id_opt_f64(this: &SFrameTransformErrorEventInit, val: Option<f64>);
136    #[cfg(web_sys_unstable_apis)]
137    #[doc = "Change the `keyID` field of this object."]
138    #[doc = ""]
139    #[doc = "*This API requires the following crate features to be activated: `SFrameTransformErrorEventInit`*"]
140    #[doc = ""]
141    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
142    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
143    #[wasm_bindgen(method, setter = "keyID")]
144    pub fn set_key_id_opt_big_int(
145        this: &SFrameTransformErrorEventInit,
146        val: Option<&::js_sys::BigInt>,
147    );
148}
149#[cfg(web_sys_unstable_apis)]
150impl SFrameTransformErrorEventInit {
151    #[cfg(feature = "SFrameTransformErrorEventType")]
152    #[doc = "Construct a new `SFrameTransformErrorEventInit`."]
153    #[doc = ""]
154    #[doc = "*This API requires the following crate features to be activated: `SFrameTransformErrorEventInit`, `SFrameTransformErrorEventType`*"]
155    #[doc = ""]
156    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
157    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
158    pub fn new(error_type: SFrameTransformErrorEventType, frame: &::wasm_bindgen::JsValue) -> Self {
159        #[allow(unused_mut)]
160        let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
161        ret.set_error_type(error_type);
162        ret.set_frame(frame);
163        ret
164    }
165    #[cfg(web_sys_unstable_apis)]
166    #[deprecated = "Use `set_bubbles()` instead."]
167    pub fn bubbles(&mut self, val: bool) -> &mut Self {
168        self.set_bubbles(val);
169        self
170    }
171    #[cfg(web_sys_unstable_apis)]
172    #[deprecated = "Use `set_cancelable()` instead."]
173    pub fn cancelable(&mut self, val: bool) -> &mut Self {
174        self.set_cancelable(val);
175        self
176    }
177    #[cfg(web_sys_unstable_apis)]
178    #[deprecated = "Use `set_composed()` instead."]
179    pub fn composed(&mut self, val: bool) -> &mut Self {
180        self.set_composed(val);
181        self
182    }
183    #[cfg(web_sys_unstable_apis)]
184    #[cfg(feature = "SFrameTransformErrorEventType")]
185    #[deprecated = "Use `set_error_type()` instead."]
186    pub fn error_type(&mut self, val: SFrameTransformErrorEventType) -> &mut Self {
187        self.set_error_type(val);
188        self
189    }
190    #[cfg(web_sys_unstable_apis)]
191    #[deprecated = "Use `set_frame()` instead."]
192    pub fn frame(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
193        self.set_frame(val);
194        self
195    }
196    #[cfg(web_sys_unstable_apis)]
197    #[deprecated = "Use `set_key_id()` instead."]
198    pub fn key_id(&mut self, val: Option<u32>) -> &mut Self {
199        self.set_key_id(val);
200        self
201    }
202}