web_sys/features/
gen_WorkerLocation.rs1#![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 = WorkerLocation , typescript_type = "WorkerLocation")]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `WorkerLocation` class."]
10 #[doc = ""]
11 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerLocation)"]
12 #[doc = ""]
13 #[doc = "*This API requires the following crate features to be activated: `WorkerLocation`*"]
14 pub type WorkerLocation;
15 # [wasm_bindgen (structural , method , getter , js_class = "WorkerLocation" , 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/WorkerLocation/href)"]
19 #[doc = ""]
20 #[doc = "*This API requires the following crate features to be activated: `WorkerLocation`*"]
21 pub fn href(this: &WorkerLocation) -> ::alloc::string::String;
22 # [wasm_bindgen (structural , method , getter , js_class = "WorkerLocation" , js_name = origin)]
23 #[doc = "Getter for the `origin` field of this object."]
24 #[doc = ""]
25 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerLocation/origin)"]
26 #[doc = ""]
27 #[doc = "*This API requires the following crate features to be activated: `WorkerLocation`*"]
28 pub fn origin(this: &WorkerLocation) -> ::alloc::string::String;
29 # [wasm_bindgen (structural , method , getter , js_class = "WorkerLocation" , js_name = protocol)]
30 #[doc = "Getter for the `protocol` field of this object."]
31 #[doc = ""]
32 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerLocation/protocol)"]
33 #[doc = ""]
34 #[doc = "*This API requires the following crate features to be activated: `WorkerLocation`*"]
35 pub fn protocol(this: &WorkerLocation) -> ::alloc::string::String;
36 # [wasm_bindgen (structural , method , getter , js_class = "WorkerLocation" , js_name = host)]
37 #[doc = "Getter for the `host` field of this object."]
38 #[doc = ""]
39 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerLocation/host)"]
40 #[doc = ""]
41 #[doc = "*This API requires the following crate features to be activated: `WorkerLocation`*"]
42 pub fn host(this: &WorkerLocation) -> ::alloc::string::String;
43 # [wasm_bindgen (structural , method , getter , js_class = "WorkerLocation" , js_name = hostname)]
44 #[doc = "Getter for the `hostname` field of this object."]
45 #[doc = ""]
46 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerLocation/hostname)"]
47 #[doc = ""]
48 #[doc = "*This API requires the following crate features to be activated: `WorkerLocation`*"]
49 pub fn hostname(this: &WorkerLocation) -> ::alloc::string::String;
50 # [wasm_bindgen (structural , method , getter , js_class = "WorkerLocation" , js_name = port)]
51 #[doc = "Getter for the `port` field of this object."]
52 #[doc = ""]
53 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerLocation/port)"]
54 #[doc = ""]
55 #[doc = "*This API requires the following crate features to be activated: `WorkerLocation`*"]
56 pub fn port(this: &WorkerLocation) -> ::alloc::string::String;
57 # [wasm_bindgen (structural , method , getter , js_class = "WorkerLocation" , js_name = pathname)]
58 #[doc = "Getter for the `pathname` field of this object."]
59 #[doc = ""]
60 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerLocation/pathname)"]
61 #[doc = ""]
62 #[doc = "*This API requires the following crate features to be activated: `WorkerLocation`*"]
63 pub fn pathname(this: &WorkerLocation) -> ::alloc::string::String;
64 # [wasm_bindgen (structural , method , getter , js_class = "WorkerLocation" , js_name = search)]
65 #[doc = "Getter for the `search` field of this object."]
66 #[doc = ""]
67 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerLocation/search)"]
68 #[doc = ""]
69 #[doc = "*This API requires the following crate features to be activated: `WorkerLocation`*"]
70 pub fn search(this: &WorkerLocation) -> ::alloc::string::String;
71 # [wasm_bindgen (structural , method , getter , js_class = "WorkerLocation" , js_name = hash)]
72 #[doc = "Getter for the `hash` field of this object."]
73 #[doc = ""]
74 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerLocation/hash)"]
75 #[doc = ""]
76 #[doc = "*This API requires the following crate features to be activated: `WorkerLocation`*"]
77 pub fn hash(this: &WorkerLocation) -> ::alloc::string::String;
78}