web_sys/features/
gen_WorkerLocation.rs

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
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
    # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WorkerLocation , typescript_type = "WorkerLocation")]
    #[derive(Debug, Clone, PartialEq, Eq)]
    #[doc = "The `WorkerLocation` class."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerLocation)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `WorkerLocation`*"]
    pub type WorkerLocation;
    # [wasm_bindgen (structural , method , getter , js_class = "WorkerLocation" , 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/WorkerLocation/href)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `WorkerLocation`*"]
    pub fn href(this: &WorkerLocation) -> ::alloc::string::String;
    # [wasm_bindgen (structural , method , getter , js_class = "WorkerLocation" , 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/WorkerLocation/origin)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `WorkerLocation`*"]
    pub fn origin(this: &WorkerLocation) -> ::alloc::string::String;
    # [wasm_bindgen (structural , method , getter , js_class = "WorkerLocation" , 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/WorkerLocation/protocol)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `WorkerLocation`*"]
    pub fn protocol(this: &WorkerLocation) -> ::alloc::string::String;
    # [wasm_bindgen (structural , method , getter , js_class = "WorkerLocation" , 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/WorkerLocation/host)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `WorkerLocation`*"]
    pub fn host(this: &WorkerLocation) -> ::alloc::string::String;
    # [wasm_bindgen (structural , method , getter , js_class = "WorkerLocation" , 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/WorkerLocation/hostname)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `WorkerLocation`*"]
    pub fn hostname(this: &WorkerLocation) -> ::alloc::string::String;
    # [wasm_bindgen (structural , method , getter , js_class = "WorkerLocation" , 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/WorkerLocation/port)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `WorkerLocation`*"]
    pub fn port(this: &WorkerLocation) -> ::alloc::string::String;
    # [wasm_bindgen (structural , method , getter , js_class = "WorkerLocation" , 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/WorkerLocation/pathname)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `WorkerLocation`*"]
    pub fn pathname(this: &WorkerLocation) -> ::alloc::string::String;
    # [wasm_bindgen (structural , method , getter , js_class = "WorkerLocation" , 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/WorkerLocation/search)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `WorkerLocation`*"]
    pub fn search(this: &WorkerLocation) -> ::alloc::string::String;
    # [wasm_bindgen (structural , method , getter , js_class = "WorkerLocation" , 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/WorkerLocation/hash)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `WorkerLocation`*"]
    pub fn hash(this: &WorkerLocation) -> ::alloc::string::String;
}