web_sys/features/
gen_FileSystemHandle.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 #[wasm_bindgen(
8 extends = "::js_sys::Object",
9 js_name = "FileSystemHandle",
10 typescript_type = "FileSystemHandle"
11 )]
12 #[derive(Debug, Clone, PartialEq, Eq)]
13 #[doc = "The `FileSystemHandle` class."]
14 #[doc = ""]
15 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemHandle)"]
16 #[doc = ""]
17 #[doc = "*This API requires the following crate features to be activated: `FileSystemHandle`*"]
18 pub type FileSystemHandle;
19 #[cfg(feature = "FileSystemHandleKind")]
20 #[wasm_bindgen(method, getter, js_class = "FileSystemHandle", js_name = "kind")]
21 #[doc = "Getter for the `kind` field of this object."]
22 #[doc = ""]
23 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemHandle/kind)"]
24 #[doc = ""]
25 #[doc = "*This API requires the following crate features to be activated: `FileSystemHandle`, `FileSystemHandleKind`*"]
26 pub fn kind(this: &FileSystemHandle) -> FileSystemHandleKind;
27 #[wasm_bindgen(method, getter, js_class = "FileSystemHandle", js_name = "name")]
28 #[doc = "Getter for the `name` field of this object."]
29 #[doc = ""]
30 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemHandle/name)"]
31 #[doc = ""]
32 #[doc = "*This API requires the following crate features to be activated: `FileSystemHandle`*"]
33 pub fn name(this: &FileSystemHandle) -> ::alloc::string::String;
34 #[wasm_bindgen(method, js_class = "FileSystemHandle", js_name = "isSameEntry")]
35 #[doc = "The `isSameEntry()` method."]
36 #[doc = ""]
37 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemHandle/isSameEntry)"]
38 #[doc = ""]
39 #[doc = "*This API requires the following crate features to be activated: `FileSystemHandle`*"]
40 pub fn is_same_entry(this: &FileSystemHandle, other: &FileSystemHandle) -> ::js_sys::Promise;
41 #[cfg(web_sys_unstable_apis)]
42 #[wasm_bindgen(method, js_class = "FileSystemHandle", js_name = "queryPermission")]
43 #[doc = "The `queryPermission()` method."]
44 #[doc = ""]
45 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemHandle/queryPermission)"]
46 #[doc = ""]
47 #[doc = "*This API requires the following crate features to be activated: `FileSystemHandle`*"]
48 #[doc = ""]
49 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
50 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
51 pub fn query_permission(this: &FileSystemHandle) -> ::js_sys::Promise<::js_sys::JsString>;
52 #[cfg(web_sys_unstable_apis)]
53 #[cfg(feature = "FileSystemHandlePermissionDescriptor")]
54 #[wasm_bindgen(method, js_class = "FileSystemHandle", js_name = "queryPermission")]
55 #[doc = "The `queryPermission()` method."]
56 #[doc = ""]
57 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemHandle/queryPermission)"]
58 #[doc = ""]
59 #[doc = "*This API requires the following crate features to be activated: `FileSystemHandle`, `FileSystemHandlePermissionDescriptor`*"]
60 #[doc = ""]
61 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
62 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
63 pub fn query_permission_with_descriptor(
64 this: &FileSystemHandle,
65 descriptor: &FileSystemHandlePermissionDescriptor,
66 ) -> ::js_sys::Promise<::js_sys::JsString>;
67 #[cfg(web_sys_unstable_apis)]
68 #[wasm_bindgen(method, js_class = "FileSystemHandle", js_name = "requestPermission")]
69 #[doc = "The `requestPermission()` method."]
70 #[doc = ""]
71 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemHandle/requestPermission)"]
72 #[doc = ""]
73 #[doc = "*This API requires the following crate features to be activated: `FileSystemHandle`*"]
74 #[doc = ""]
75 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
76 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
77 pub fn request_permission(this: &FileSystemHandle) -> ::js_sys::Promise<::js_sys::JsString>;
78 #[cfg(web_sys_unstable_apis)]
79 #[cfg(feature = "FileSystemHandlePermissionDescriptor")]
80 #[wasm_bindgen(method, js_class = "FileSystemHandle", js_name = "requestPermission")]
81 #[doc = "The `requestPermission()` method."]
82 #[doc = ""]
83 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemHandle/requestPermission)"]
84 #[doc = ""]
85 #[doc = "*This API requires the following crate features to be activated: `FileSystemHandle`, `FileSystemHandlePermissionDescriptor`*"]
86 #[doc = ""]
87 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
88 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
89 pub fn request_permission_with_descriptor(
90 this: &FileSystemHandle,
91 descriptor: &FileSystemHandlePermissionDescriptor,
92 ) -> ::js_sys::Promise<::js_sys::JsString>;
93}