web_sys/features/
gen_CookieChangeEvent.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = CookieChangeEvent , typescript_type = "CookieChangeEvent")]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `CookieChangeEvent` class."]
10 #[doc = ""]
11 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CookieChangeEvent)"]
12 #[doc = ""]
13 #[doc = "*This API requires the following crate features to be activated: `CookieChangeEvent`*"]
14 pub type CookieChangeEvent;
15 # [wasm_bindgen (structural , method , getter , js_class = "CookieChangeEvent" , js_name = changed)]
16 #[doc = "Getter for the `changed` field of this object."]
17 #[doc = ""]
18 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CookieChangeEvent/changed)"]
19 #[doc = ""]
20 #[doc = "*This API requires the following crate features to be activated: `CookieChangeEvent`*"]
21 pub fn changed(this: &CookieChangeEvent) -> ::js_sys::Array;
22 # [wasm_bindgen (structural , method , getter , js_class = "CookieChangeEvent" , js_name = deleted)]
23 #[doc = "Getter for the `deleted` field of this object."]
24 #[doc = ""]
25 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CookieChangeEvent/deleted)"]
26 #[doc = ""]
27 #[doc = "*This API requires the following crate features to be activated: `CookieChangeEvent`*"]
28 pub fn deleted(this: &CookieChangeEvent) -> ::js_sys::Array;
29 #[wasm_bindgen(catch, constructor, js_class = "CookieChangeEvent")]
30 #[doc = "The `new CookieChangeEvent(..)` constructor, creating a new instance of `CookieChangeEvent`."]
31 #[doc = ""]
32 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CookieChangeEvent/CookieChangeEvent)"]
33 #[doc = ""]
34 #[doc = "*This API requires the following crate features to be activated: `CookieChangeEvent`*"]
35 pub fn new(type_: &str) -> Result<CookieChangeEvent, JsValue>;
36 #[cfg(feature = "CookieChangeEventInit")]
37 #[wasm_bindgen(catch, constructor, js_class = "CookieChangeEvent")]
38 #[doc = "The `new CookieChangeEvent(..)` constructor, creating a new instance of `CookieChangeEvent`."]
39 #[doc = ""]
40 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CookieChangeEvent/CookieChangeEvent)"]
41 #[doc = ""]
42 #[doc = "*This API requires the following crate features to be activated: `CookieChangeEvent`, `CookieChangeEventInit`*"]
43 pub fn new_with_event_init_dict(
44 type_: &str,
45 event_init_dict: &CookieChangeEventInit,
46 ) -> Result<CookieChangeEvent, JsValue>;
47}