1 #![allow(unused_imports)]
2 use super::*;
3 use wasm_bindgen::prelude::*;
4 #[wasm_bindgen]
5 extern "C" {
6     # [wasm_bindgen (extends = :: js_sys :: Object , js_name = Location , typescript_type = "Location")]
7     #[derive(Debug, Clone, PartialEq, Eq)]
8     #[doc = "The `Location` class."]
9     #[doc = ""]
10     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location)"]
11     #[doc = ""]
12     #[doc = "*This API requires the following crate features to be activated: `Location`*"]
13     pub type Location;
14     # [wasm_bindgen (structural , catch , method , getter , js_class = "Location" , js_name = href)]
15     #[doc = "Getter for the `href` field of this object."]
16     #[doc = ""]
17     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/href)"]
18     #[doc = ""]
19     #[doc = "*This API requires the following crate features to be activated: `Location`*"]
href(this: &Location) -> Result<String, JsValue>20     pub fn href(this: &Location) -> Result<String, JsValue>;
21     # [wasm_bindgen (structural , catch , method , setter , js_class = "Location" , js_name = href)]
22     #[doc = "Setter for the `href` field of this object."]
23     #[doc = ""]
24     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/href)"]
25     #[doc = ""]
26     #[doc = "*This API requires the following crate features to be activated: `Location`*"]
set_href(this: &Location, value: &str) -> Result<(), JsValue>27     pub fn set_href(this: &Location, value: &str) -> Result<(), JsValue>;
28     # [wasm_bindgen (structural , catch , method , getter , js_class = "Location" , js_name = origin)]
29     #[doc = "Getter for the `origin` field of this object."]
30     #[doc = ""]
31     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/origin)"]
32     #[doc = ""]
33     #[doc = "*This API requires the following crate features to be activated: `Location`*"]
origin(this: &Location) -> Result<String, JsValue>34     pub fn origin(this: &Location) -> Result<String, JsValue>;
35     # [wasm_bindgen (structural , catch , method , getter , js_class = "Location" , js_name = protocol)]
36     #[doc = "Getter for the `protocol` field of this object."]
37     #[doc = ""]
38     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/protocol)"]
39     #[doc = ""]
40     #[doc = "*This API requires the following crate features to be activated: `Location`*"]
protocol(this: &Location) -> Result<String, JsValue>41     pub fn protocol(this: &Location) -> Result<String, JsValue>;
42     # [wasm_bindgen (structural , catch , method , setter , js_class = "Location" , js_name = protocol)]
43     #[doc = "Setter for the `protocol` field of this object."]
44     #[doc = ""]
45     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/protocol)"]
46     #[doc = ""]
47     #[doc = "*This API requires the following crate features to be activated: `Location`*"]
set_protocol(this: &Location, value: &str) -> Result<(), JsValue>48     pub fn set_protocol(this: &Location, value: &str) -> Result<(), JsValue>;
49     # [wasm_bindgen (structural , catch , method , getter , js_class = "Location" , js_name = host)]
50     #[doc = "Getter for the `host` field of this object."]
51     #[doc = ""]
52     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/host)"]
53     #[doc = ""]
54     #[doc = "*This API requires the following crate features to be activated: `Location`*"]
host(this: &Location) -> Result<String, JsValue>55     pub fn host(this: &Location) -> Result<String, JsValue>;
56     # [wasm_bindgen (structural , catch , method , setter , js_class = "Location" , js_name = host)]
57     #[doc = "Setter for the `host` field of this object."]
58     #[doc = ""]
59     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/host)"]
60     #[doc = ""]
61     #[doc = "*This API requires the following crate features to be activated: `Location`*"]
set_host(this: &Location, value: &str) -> Result<(), JsValue>62     pub fn set_host(this: &Location, value: &str) -> Result<(), JsValue>;
63     # [wasm_bindgen (structural , catch , method , getter , js_class = "Location" , js_name = hostname)]
64     #[doc = "Getter for the `hostname` field of this object."]
65     #[doc = ""]
66     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/hostname)"]
67     #[doc = ""]
68     #[doc = "*This API requires the following crate features to be activated: `Location`*"]
hostname(this: &Location) -> Result<String, JsValue>69     pub fn hostname(this: &Location) -> Result<String, JsValue>;
70     # [wasm_bindgen (structural , catch , method , setter , js_class = "Location" , js_name = hostname)]
71     #[doc = "Setter for the `hostname` field of this object."]
72     #[doc = ""]
73     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/hostname)"]
74     #[doc = ""]
75     #[doc = "*This API requires the following crate features to be activated: `Location`*"]
set_hostname(this: &Location, value: &str) -> Result<(), JsValue>76     pub fn set_hostname(this: &Location, value: &str) -> Result<(), JsValue>;
77     # [wasm_bindgen (structural , catch , method , getter , js_class = "Location" , js_name = port)]
78     #[doc = "Getter for the `port` field of this object."]
79     #[doc = ""]
80     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/port)"]
81     #[doc = ""]
82     #[doc = "*This API requires the following crate features to be activated: `Location`*"]
port(this: &Location) -> Result<String, JsValue>83     pub fn port(this: &Location) -> Result<String, JsValue>;
84     # [wasm_bindgen (structural , catch , method , setter , js_class = "Location" , js_name = port)]
85     #[doc = "Setter for the `port` field of this object."]
86     #[doc = ""]
87     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/port)"]
88     #[doc = ""]
89     #[doc = "*This API requires the following crate features to be activated: `Location`*"]
set_port(this: &Location, value: &str) -> Result<(), JsValue>90     pub fn set_port(this: &Location, value: &str) -> Result<(), JsValue>;
91     # [wasm_bindgen (structural , catch , method , getter , js_class = "Location" , js_name = pathname)]
92     #[doc = "Getter for the `pathname` field of this object."]
93     #[doc = ""]
94     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/pathname)"]
95     #[doc = ""]
96     #[doc = "*This API requires the following crate features to be activated: `Location`*"]
pathname(this: &Location) -> Result<String, JsValue>97     pub fn pathname(this: &Location) -> Result<String, JsValue>;
98     # [wasm_bindgen (structural , catch , method , setter , js_class = "Location" , js_name = pathname)]
99     #[doc = "Setter for the `pathname` field of this object."]
100     #[doc = ""]
101     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/pathname)"]
102     #[doc = ""]
103     #[doc = "*This API requires the following crate features to be activated: `Location`*"]
set_pathname(this: &Location, value: &str) -> Result<(), JsValue>104     pub fn set_pathname(this: &Location, value: &str) -> Result<(), JsValue>;
105     # [wasm_bindgen (structural , catch , method , getter , js_class = "Location" , js_name = search)]
106     #[doc = "Getter for the `search` field of this object."]
107     #[doc = ""]
108     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/search)"]
109     #[doc = ""]
110     #[doc = "*This API requires the following crate features to be activated: `Location`*"]
search(this: &Location) -> Result<String, JsValue>111     pub fn search(this: &Location) -> Result<String, JsValue>;
112     # [wasm_bindgen (structural , catch , method , setter , js_class = "Location" , js_name = search)]
113     #[doc = "Setter for the `search` field of this object."]
114     #[doc = ""]
115     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/search)"]
116     #[doc = ""]
117     #[doc = "*This API requires the following crate features to be activated: `Location`*"]
set_search(this: &Location, value: &str) -> Result<(), JsValue>118     pub fn set_search(this: &Location, value: &str) -> Result<(), JsValue>;
119     # [wasm_bindgen (structural , catch , method , getter , js_class = "Location" , js_name = hash)]
120     #[doc = "Getter for the `hash` field of this object."]
121     #[doc = ""]
122     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/hash)"]
123     #[doc = ""]
124     #[doc = "*This API requires the following crate features to be activated: `Location`*"]
hash(this: &Location) -> Result<String, JsValue>125     pub fn hash(this: &Location) -> Result<String, JsValue>;
126     # [wasm_bindgen (structural , catch , method , setter , js_class = "Location" , js_name = hash)]
127     #[doc = "Setter for the `hash` field of this object."]
128     #[doc = ""]
129     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/hash)"]
130     #[doc = ""]
131     #[doc = "*This API requires the following crate features to be activated: `Location`*"]
set_hash(this: &Location, value: &str) -> Result<(), JsValue>132     pub fn set_hash(this: &Location, value: &str) -> Result<(), JsValue>;
133     # [wasm_bindgen (catch , method , structural , js_class = "Location" , js_name = assign)]
134     #[doc = "The `assign()` method."]
135     #[doc = ""]
136     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/assign)"]
137     #[doc = ""]
138     #[doc = "*This API requires the following crate features to be activated: `Location`*"]
assign(this: &Location, url: &str) -> Result<(), JsValue>139     pub fn assign(this: &Location, url: &str) -> Result<(), JsValue>;
140     # [wasm_bindgen (catch , method , structural , js_class = "Location" , js_name = reload)]
141     #[doc = "The `reload()` method."]
142     #[doc = ""]
143     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/reload)"]
144     #[doc = ""]
145     #[doc = "*This API requires the following crate features to be activated: `Location`*"]
reload(this: &Location) -> Result<(), JsValue>146     pub fn reload(this: &Location) -> Result<(), JsValue>;
147     # [wasm_bindgen (catch , method , structural , js_class = "Location" , js_name = reload)]
148     #[doc = "The `reload()` method."]
149     #[doc = ""]
150     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/reload)"]
151     #[doc = ""]
152     #[doc = "*This API requires the following crate features to be activated: `Location`*"]
reload_with_forceget(this: &Location, forceget: bool) -> Result<(), JsValue>153     pub fn reload_with_forceget(this: &Location, forceget: bool) -> Result<(), JsValue>;
154     # [wasm_bindgen (catch , method , structural , js_class = "Location" , js_name = replace)]
155     #[doc = "The `replace()` method."]
156     #[doc = ""]
157     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/replace)"]
158     #[doc = ""]
159     #[doc = "*This API requires the following crate features to be activated: `Location`*"]
replace(this: &Location, url: &str) -> Result<(), JsValue>160     pub fn replace(this: &Location, url: &str) -> Result<(), JsValue>;
161 }
162