1 #![allow(unused_imports)]
2 use super::*;
3 use wasm_bindgen::prelude::*;
4 #[wasm_bindgen]
5 extern "C" {
6     # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = Permissions , typescript_type = "Permissions" ) ]
7     #[derive(Debug, Clone, PartialEq, Eq)]
8     #[doc = "The `Permissions` class."]
9     #[doc = ""]
10     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Permissions)"]
11     #[doc = ""]
12     #[doc = "*This API requires the following crate features to be activated: `Permissions`*"]
13     pub type Permissions;
14     # [ wasm_bindgen ( catch , method , structural , js_class = "Permissions" , js_name = query ) ]
15     #[doc = "The `query()` method."]
16     #[doc = ""]
17     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Permissions/query)"]
18     #[doc = ""]
19     #[doc = "*This API requires the following crate features to be activated: `Permissions`*"]
query( this: &Permissions, permission: &::js_sys::Object, ) -> Result<::js_sys::Promise, JsValue>20     pub fn query(
21         this: &Permissions,
22         permission: &::js_sys::Object,
23     ) -> Result<::js_sys::Promise, JsValue>;
24     # [ wasm_bindgen ( catch , method , structural , js_class = "Permissions" , js_name = revoke ) ]
25     #[doc = "The `revoke()` method."]
26     #[doc = ""]
27     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Permissions/revoke)"]
28     #[doc = ""]
29     #[doc = "*This API requires the following crate features to be activated: `Permissions`*"]
revoke( this: &Permissions, permission: &::js_sys::Object, ) -> Result<::js_sys::Promise, JsValue>30     pub fn revoke(
31         this: &Permissions,
32         permission: &::js_sys::Object,
33     ) -> Result<::js_sys::Promise, JsValue>;
34 }
35