web_sys/features/
gen_PermissionStatus.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = PermissionStatus , typescript_type = "PermissionStatus")]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `PermissionStatus` class."]
10 #[doc = ""]
11 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PermissionStatus)"]
12 #[doc = ""]
13 #[doc = "*This API requires the following crate features to be activated: `PermissionStatus`*"]
14 pub type PermissionStatus;
15 #[cfg(feature = "PermissionState")]
16 # [wasm_bindgen (structural , method , getter , js_class = "PermissionStatus" , js_name = state)]
17 #[doc = "Getter for the `state` field of this object."]
18 #[doc = ""]
19 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PermissionStatus/state)"]
20 #[doc = ""]
21 #[doc = "*This API requires the following crate features to be activated: `PermissionState`, `PermissionStatus`*"]
22 pub fn state(this: &PermissionStatus) -> PermissionState;
23 # [wasm_bindgen (structural , method , getter , js_class = "PermissionStatus" , js_name = onchange)]
24 #[doc = "Getter for the `onchange` field of this object."]
25 #[doc = ""]
26 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PermissionStatus/onchange)"]
27 #[doc = ""]
28 #[doc = "*This API requires the following crate features to be activated: `PermissionStatus`*"]
29 pub fn onchange(this: &PermissionStatus) -> Option<::js_sys::Function>;
30 # [wasm_bindgen (structural , method , setter , js_class = "PermissionStatus" , js_name = onchange)]
31 #[doc = "Setter for the `onchange` field of this object."]
32 #[doc = ""]
33 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PermissionStatus/onchange)"]
34 #[doc = ""]
35 #[doc = "*This API requires the following crate features to be activated: `PermissionStatus`*"]
36 pub fn set_onchange(this: &PermissionStatus, value: Option<&::js_sys::Function>);
37}