web_sys/features/
gen_StartViewTransitionOptions.rs1#![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 = "StartViewTransitionOptions")]
9 #[derive(Debug, Clone, PartialEq, Eq)]
10 #[doc = "The `StartViewTransitionOptions` dictionary."]
11 #[doc = ""]
12 #[doc = "*This API requires the following crate features to be activated: `StartViewTransitionOptions`*"]
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 StartViewTransitionOptions;
17 #[cfg(web_sys_unstable_apis)]
18 #[doc = "Get the `types` field of this object."]
19 #[doc = ""]
20 #[doc = "*This API requires the following crate features to be activated: `StartViewTransitionOptions`*"]
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 = "types")]
25 pub fn get_types(
26 this: &StartViewTransitionOptions,
27 ) -> Option<::js_sys::Array<::js_sys::JsString>>;
28 #[cfg(web_sys_unstable_apis)]
29 #[doc = "Change the `types` field of this object."]
30 #[doc = ""]
31 #[doc = "*This API requires the following crate features to be activated: `StartViewTransitionOptions`*"]
32 #[doc = ""]
33 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
34 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
35 #[wasm_bindgen(method, setter = "types")]
36 pub fn set_types(this: &StartViewTransitionOptions, val: Option<&[::js_sys::JsString]>);
37 #[cfg(web_sys_unstable_apis)]
38 #[doc = "Get the `update` field of this object."]
39 #[doc = ""]
40 #[doc = "*This API requires the following crate features to be activated: `StartViewTransitionOptions`*"]
41 #[doc = ""]
42 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
43 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
44 #[wasm_bindgen(method, getter = "update")]
45 pub fn get_update(this: &StartViewTransitionOptions) -> Option<::js_sys::Function>;
46 #[cfg(web_sys_unstable_apis)]
47 #[doc = "Change the `update` field of this object."]
48 #[doc = ""]
49 #[doc = "*This API requires the following crate features to be activated: `StartViewTransitionOptions`*"]
50 #[doc = ""]
51 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
52 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
53 #[wasm_bindgen(method, setter = "update")]
54 pub fn set_update(this: &StartViewTransitionOptions, val: Option<&::js_sys::Function>);
55}
56#[cfg(web_sys_unstable_apis)]
57impl StartViewTransitionOptions {
58 #[doc = "Construct a new `StartViewTransitionOptions`."]
59 #[doc = ""]
60 #[doc = "*This API requires the following crate features to be activated: `StartViewTransitionOptions`*"]
61 #[doc = ""]
62 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
63 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
64 pub fn new() -> Self {
65 #[allow(unused_mut)]
66 let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
67 ret
68 }
69 #[cfg(web_sys_unstable_apis)]
70 #[deprecated = "Use `set_types()` instead."]
71 pub fn types(&mut self, val: Option<&[::js_sys::JsString]>) -> &mut Self {
72 self.set_types(val);
73 self
74 }
75 #[cfg(web_sys_unstable_apis)]
76 #[deprecated = "Use `set_update()` instead."]
77 pub fn update(&mut self, val: Option<&::js_sys::Function>) -> &mut Self {
78 self.set_update(val);
79 self
80 }
81}
82#[cfg(web_sys_unstable_apis)]
83impl Default for StartViewTransitionOptions {
84 fn default() -> Self {
85 Self::new()
86 }
87}