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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
    # [wasm_bindgen (extends = :: js_sys :: Object , js_name = Location , typescript_type = "Location")]
    #[derive(Debug, Clone, PartialEq, Eq)]
    #[doc = "The `Location` class."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `Location`*"]
    pub type Location;
    # [wasm_bindgen (structural , catch , method , getter , js_class = "Location" , js_name = href)]
    #[doc = "Getter for the `href` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/href)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `Location`*"]
    pub fn href(this: &Location) -> Result<String, JsValue>;
    # [wasm_bindgen (structural , catch , method , setter , js_class = "Location" , js_name = href)]
    #[doc = "Setter for the `href` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/href)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `Location`*"]
    pub fn set_href(this: &Location, value: &str) -> Result<(), JsValue>;
    # [wasm_bindgen (structural , catch , method , getter , js_class = "Location" , js_name = origin)]
    #[doc = "Getter for the `origin` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/origin)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `Location`*"]
    pub fn origin(this: &Location) -> Result<String, JsValue>;
    # [wasm_bindgen (structural , catch , method , getter , js_class = "Location" , js_name = protocol)]
    #[doc = "Getter for the `protocol` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/protocol)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `Location`*"]
    pub fn protocol(this: &Location) -> Result<String, JsValue>;
    # [wasm_bindgen (structural , catch , method , setter , js_class = "Location" , js_name = protocol)]
    #[doc = "Setter for the `protocol` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/protocol)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `Location`*"]
    pub fn set_protocol(this: &Location, value: &str) -> Result<(), JsValue>;
    # [wasm_bindgen (structural , catch , method , getter , js_class = "Location" , js_name = host)]
    #[doc = "Getter for the `host` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/host)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `Location`*"]
    pub fn host(this: &Location) -> Result<String, JsValue>;
    # [wasm_bindgen (structural , catch , method , setter , js_class = "Location" , js_name = host)]
    #[doc = "Setter for the `host` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/host)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `Location`*"]
    pub fn set_host(this: &Location, value: &str) -> Result<(), JsValue>;
    # [wasm_bindgen (structural , catch , method , getter , js_class = "Location" , js_name = hostname)]
    #[doc = "Getter for the `hostname` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/hostname)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `Location`*"]
    pub fn hostname(this: &Location) -> Result<String, JsValue>;
    # [wasm_bindgen (structural , catch , method , setter , js_class = "Location" , js_name = hostname)]
    #[doc = "Setter for the `hostname` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/hostname)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `Location`*"]
    pub fn set_hostname(this: &Location, value: &str) -> Result<(), JsValue>;
    # [wasm_bindgen (structural , catch , method , getter , js_class = "Location" , js_name = port)]
    #[doc = "Getter for the `port` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/port)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `Location`*"]
    pub fn port(this: &Location) -> Result<String, JsValue>;
    # [wasm_bindgen (structural , catch , method , setter , js_class = "Location" , js_name = port)]
    #[doc = "Setter for the `port` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/port)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `Location`*"]
    pub fn set_port(this: &Location, value: &str) -> Result<(), JsValue>;
    # [wasm_bindgen (structural , catch , method , getter , js_class = "Location" , js_name = pathname)]
    #[doc = "Getter for the `pathname` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/pathname)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `Location`*"]
    pub fn pathname(this: &Location) -> Result<String, JsValue>;
    # [wasm_bindgen (structural , catch , method , setter , js_class = "Location" , js_name = pathname)]
    #[doc = "Setter for the `pathname` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/pathname)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `Location`*"]
    pub fn set_pathname(this: &Location, value: &str) -> Result<(), JsValue>;
    # [wasm_bindgen (structural , catch , method , getter , js_class = "Location" , js_name = search)]
    #[doc = "Getter for the `search` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/search)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `Location`*"]
    pub fn search(this: &Location) -> Result<String, JsValue>;
    # [wasm_bindgen (structural , catch , method , setter , js_class = "Location" , js_name = search)]
    #[doc = "Setter for the `search` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/search)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `Location`*"]
    pub fn set_search(this: &Location, value: &str) -> Result<(), JsValue>;
    # [wasm_bindgen (structural , catch , method , getter , js_class = "Location" , js_name = hash)]
    #[doc = "Getter for the `hash` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/hash)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `Location`*"]
    pub fn hash(this: &Location) -> Result<String, JsValue>;
    # [wasm_bindgen (structural , catch , method , setter , js_class = "Location" , js_name = hash)]
    #[doc = "Setter for the `hash` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/hash)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `Location`*"]
    pub fn set_hash(this: &Location, value: &str) -> Result<(), JsValue>;
    # [wasm_bindgen (catch , method , structural , js_class = "Location" , js_name = assign)]
    #[doc = "The `assign()` method."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/assign)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `Location`*"]
    pub fn assign(this: &Location, url: &str) -> Result<(), JsValue>;
    # [wasm_bindgen (catch , method , structural , js_class = "Location" , js_name = reload)]
    #[doc = "The `reload()` method."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/reload)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `Location`*"]
    pub fn reload(this: &Location) -> Result<(), JsValue>;
    # [wasm_bindgen (catch , method , structural , js_class = "Location" , js_name = reload)]
    #[doc = "The `reload()` method."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/reload)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `Location`*"]
    pub fn reload_with_forceget(this: &Location, forceget: bool) -> Result<(), JsValue>;
    # [wasm_bindgen (catch , method , structural , js_class = "Location" , js_name = replace)]
    #[doc = "The `replace()` method."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/replace)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `Location`*"]
    pub fn replace(this: &Location, url: &str) -> Result<(), JsValue>;
}