1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
    # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PerformanceNavigation , typescript_type = "PerformanceNavigation")]
    #[derive(Debug, Clone, PartialEq, Eq)]
    #[doc = "The `PerformanceNavigation` class."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigation)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigation`*"]
    pub type PerformanceNavigation;
    # [wasm_bindgen (structural , method , getter , js_class = "PerformanceNavigation" , js_name = type)]
    #[doc = "Getter for the `type` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigation/type)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigation`*"]
    pub fn type_(this: &PerformanceNavigation) -> u16;
    # [wasm_bindgen (structural , method , getter , js_class = "PerformanceNavigation" , js_name = redirectCount)]
    #[doc = "Getter for the `redirectCount` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigation/redirectCount)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigation`*"]
    pub fn redirect_count(this: &PerformanceNavigation) -> u16;
    # [wasm_bindgen (method , structural , js_class = "PerformanceNavigation" , js_name = toJSON)]
    #[doc = "The `toJSON()` method."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigation/toJSON)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigation`*"]
    pub fn to_json(this: &PerformanceNavigation) -> ::js_sys::Object;
}
impl PerformanceNavigation {
    #[doc = "The `PerformanceNavigation.TYPE_NAVIGATE` const."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigation`*"]
    pub const TYPE_NAVIGATE: u16 = 0i64 as u16;
    #[doc = "The `PerformanceNavigation.TYPE_RELOAD` const."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigation`*"]
    pub const TYPE_RELOAD: u16 = 1u64 as u16;
    #[doc = "The `PerformanceNavigation.TYPE_BACK_FORWARD` const."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigation`*"]
    pub const TYPE_BACK_FORWARD: u16 = 2u64 as u16;
    #[doc = "The `PerformanceNavigation.TYPE_RESERVED` const."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigation`*"]
    pub const TYPE_RESERVED: u16 = 255u64 as u16;
}