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