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