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