web_sys/features/
gen_Permissions.rs

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