Skip to main content

web_sys/features/
gen_WorkerLocation.rs

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