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