web_sys/features/
gen_ExtendableMessageEvent.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 # [wasm_bindgen (extends = ExtendableEvent , extends = Event , extends = :: js_sys :: Object , js_name = ExtendableMessageEvent , typescript_type = "ExtendableMessageEvent")]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `ExtendableMessageEvent` class."]
10 #[doc = ""]
11 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ExtendableMessageEvent)"]
12 #[doc = ""]
13 #[doc = "*This API requires the following crate features to be activated: `ExtendableMessageEvent`*"]
14 pub type ExtendableMessageEvent;
15 # [wasm_bindgen (structural , method , getter , js_class = "ExtendableMessageEvent" , js_name = data)]
16 #[doc = "Getter for the `data` field of this object."]
17 #[doc = ""]
18 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ExtendableMessageEvent/data)"]
19 #[doc = ""]
20 #[doc = "*This API requires the following crate features to be activated: `ExtendableMessageEvent`*"]
21 pub fn data(this: &ExtendableMessageEvent) -> ::wasm_bindgen::JsValue;
22 # [wasm_bindgen (structural , method , getter , js_class = "ExtendableMessageEvent" , 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/ExtendableMessageEvent/origin)"]
26 #[doc = ""]
27 #[doc = "*This API requires the following crate features to be activated: `ExtendableMessageEvent`*"]
28 pub fn origin(this: &ExtendableMessageEvent) -> ::alloc::string::String;
29 # [wasm_bindgen (structural , method , getter , js_class = "ExtendableMessageEvent" , js_name = lastEventId)]
30 #[doc = "Getter for the `lastEventId` field of this object."]
31 #[doc = ""]
32 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ExtendableMessageEvent/lastEventId)"]
33 #[doc = ""]
34 #[doc = "*This API requires the following crate features to be activated: `ExtendableMessageEvent`*"]
35 pub fn last_event_id(this: &ExtendableMessageEvent) -> ::alloc::string::String;
36 # [wasm_bindgen (structural , method , getter , js_class = "ExtendableMessageEvent" , js_name = source)]
37 #[doc = "Getter for the `source` field of this object."]
38 #[doc = ""]
39 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ExtendableMessageEvent/source)"]
40 #[doc = ""]
41 #[doc = "*This API requires the following crate features to be activated: `ExtendableMessageEvent`*"]
42 pub fn source(this: &ExtendableMessageEvent) -> Option<::js_sys::Object>;
43 # [wasm_bindgen (structural , method , getter , js_class = "ExtendableMessageEvent" , js_name = ports)]
44 #[doc = "Getter for the `ports` field of this object."]
45 #[doc = ""]
46 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ExtendableMessageEvent/ports)"]
47 #[doc = ""]
48 #[doc = "*This API requires the following crate features to be activated: `ExtendableMessageEvent`*"]
49 pub fn ports(this: &ExtendableMessageEvent) -> ::js_sys::Array;
50 #[wasm_bindgen(catch, constructor, js_class = "ExtendableMessageEvent")]
51 #[doc = "The `new ExtendableMessageEvent(..)` constructor, creating a new instance of `ExtendableMessageEvent`."]
52 #[doc = ""]
53 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ExtendableMessageEvent/ExtendableMessageEvent)"]
54 #[doc = ""]
55 #[doc = "*This API requires the following crate features to be activated: `ExtendableMessageEvent`*"]
56 pub fn new(type_: &str) -> Result<ExtendableMessageEvent, JsValue>;
57 #[cfg(feature = "ExtendableMessageEventInit")]
58 #[wasm_bindgen(catch, constructor, js_class = "ExtendableMessageEvent")]
59 #[doc = "The `new ExtendableMessageEvent(..)` constructor, creating a new instance of `ExtendableMessageEvent`."]
60 #[doc = ""]
61 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ExtendableMessageEvent/ExtendableMessageEvent)"]
62 #[doc = ""]
63 #[doc = "*This API requires the following crate features to be activated: `ExtendableMessageEvent`, `ExtendableMessageEventInit`*"]
64 pub fn new_with_event_init_dict(
65 type_: &str,
66 event_init_dict: &ExtendableMessageEventInit,
67 ) -> Result<ExtendableMessageEvent, JsValue>;
68}