Skip to main content

web_sys/features/
gen_NavigationTransition.rs

1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7    #[wasm_bindgen(
8        extends = "::js_sys::Object",
9        js_name = "NavigationTransition",
10        typescript_type = "NavigationTransition"
11    )]
12    #[derive(Debug, Clone, PartialEq, Eq)]
13    #[doc = "The `NavigationTransition` class."]
14    #[doc = ""]
15    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NavigationTransition)"]
16    #[doc = ""]
17    #[doc = "*This API requires the following crate features to be activated: `NavigationTransition`*"]
18    pub type NavigationTransition;
19    #[cfg(feature = "NavigationApiType")]
20    #[wasm_bindgen(
21        method,
22        getter,
23        js_class = "NavigationTransition",
24        js_name = "navigationType"
25    )]
26    #[doc = "Getter for the `navigationType` field of this object."]
27    #[doc = ""]
28    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NavigationTransition/navigationType)"]
29    #[doc = ""]
30    #[doc = "*This API requires the following crate features to be activated: `NavigationApiType`, `NavigationTransition`*"]
31    pub fn navigation_type(this: &NavigationTransition) -> NavigationApiType;
32    #[cfg(feature = "NavigationHistoryEntry")]
33    #[wasm_bindgen(method, getter, js_class = "NavigationTransition", js_name = "from")]
34    #[doc = "Getter for the `from` field of this object."]
35    #[doc = ""]
36    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NavigationTransition/from)"]
37    #[doc = ""]
38    #[doc = "*This API requires the following crate features to be activated: `NavigationHistoryEntry`, `NavigationTransition`*"]
39    pub fn from(this: &NavigationTransition) -> NavigationHistoryEntry;
40    #[cfg(feature = "NavigationDestination")]
41    #[wasm_bindgen(method, getter, js_class = "NavigationTransition", js_name = "to")]
42    #[doc = "Getter for the `to` field of this object."]
43    #[doc = ""]
44    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NavigationTransition/to)"]
45    #[doc = ""]
46    #[doc = "*This API requires the following crate features to be activated: `NavigationDestination`, `NavigationTransition`*"]
47    pub fn to(this: &NavigationTransition) -> NavigationDestination;
48    #[wasm_bindgen(
49        method,
50        getter,
51        js_class = "NavigationTransition",
52        js_name = "committed"
53    )]
54    #[doc = "Getter for the `committed` field of this object."]
55    #[doc = ""]
56    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NavigationTransition/committed)"]
57    #[doc = ""]
58    #[doc = "*This API requires the following crate features to be activated: `NavigationTransition`*"]
59    pub fn committed(this: &NavigationTransition) -> ::js_sys::Promise;
60    #[wasm_bindgen(
61        method,
62        getter,
63        js_class = "NavigationTransition",
64        js_name = "finished"
65    )]
66    #[doc = "Getter for the `finished` field of this object."]
67    #[doc = ""]
68    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NavigationTransition/finished)"]
69    #[doc = ""]
70    #[doc = "*This API requires the following crate features to be activated: `NavigationTransition`*"]
71    pub fn finished(this: &NavigationTransition) -> ::js_sys::Promise;
72}