web_sys/features/
gen_Permissions.rs

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