2
2
#![ allow( clippy:: all) ]
3
3
use super :: * ;
4
4
use wasm_bindgen:: prelude:: * ;
5
- #[ cfg( web_sys_unstable_apis) ]
6
5
#[ wasm_bindgen]
7
6
extern "C" {
8
7
# [ wasm_bindgen ( extends = FileSystemHandle , extends = :: js_sys :: Object , js_name = FileSystemDirectoryHandle , typescript_type = "FileSystemDirectoryHandle" ) ]
@@ -12,101 +11,70 @@ extern "C" {
12
11
#[ doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryHandle)" ]
13
12
#[ doc = "" ]
14
13
#[ doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryHandle`*" ]
15
- #[ doc = "" ]
16
- #[ doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as" ]
17
- #[ doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*" ]
18
14
pub type FileSystemDirectoryHandle ;
19
- #[ cfg( web_sys_unstable_apis) ]
20
15
# [ wasm_bindgen ( method , structural , js_class = "FileSystemDirectoryHandle" , js_name = getDirectoryHandle) ]
21
16
#[ doc = "The `getDirectoryHandle()` method." ]
22
17
#[ doc = "" ]
23
18
#[ doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryHandle/getDirectoryHandle)" ]
24
19
#[ doc = "" ]
25
20
#[ doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryHandle`*" ]
26
- #[ doc = "" ]
27
- #[ doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as" ]
28
- #[ doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*" ]
29
21
pub fn get_directory_handle ( this : & FileSystemDirectoryHandle , name : & str ) -> :: js_sys:: Promise ;
30
- #[ cfg( web_sys_unstable_apis) ]
31
22
#[ cfg( feature = "FileSystemGetDirectoryOptions" ) ]
32
23
# [ wasm_bindgen ( method , structural , js_class = "FileSystemDirectoryHandle" , js_name = getDirectoryHandle) ]
33
24
#[ doc = "The `getDirectoryHandle()` method." ]
34
25
#[ doc = "" ]
35
26
#[ doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryHandle/getDirectoryHandle)" ]
36
27
#[ doc = "" ]
37
28
#[ doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryHandle`, `FileSystemGetDirectoryOptions`*" ]
38
- #[ doc = "" ]
39
- #[ doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as" ]
40
- #[ doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*" ]
41
29
pub fn get_directory_handle_with_options (
42
30
this : & FileSystemDirectoryHandle ,
43
31
name : & str ,
44
32
options : & FileSystemGetDirectoryOptions ,
45
33
) -> :: js_sys:: Promise ;
46
- #[ cfg( web_sys_unstable_apis) ]
47
34
# [ wasm_bindgen ( method , structural , js_class = "FileSystemDirectoryHandle" , js_name = getFileHandle) ]
48
35
#[ doc = "The `getFileHandle()` method." ]
49
36
#[ doc = "" ]
50
37
#[ doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryHandle/getFileHandle)" ]
51
38
#[ doc = "" ]
52
39
#[ doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryHandle`*" ]
53
- #[ doc = "" ]
54
- #[ doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as" ]
55
- #[ doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*" ]
56
40
pub fn get_file_handle ( this : & FileSystemDirectoryHandle , name : & str ) -> :: js_sys:: Promise ;
57
- #[ cfg( web_sys_unstable_apis) ]
58
41
#[ cfg( feature = "FileSystemGetFileOptions" ) ]
59
42
# [ wasm_bindgen ( method , structural , js_class = "FileSystemDirectoryHandle" , js_name = getFileHandle) ]
60
43
#[ doc = "The `getFileHandle()` method." ]
61
44
#[ doc = "" ]
62
45
#[ doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryHandle/getFileHandle)" ]
63
46
#[ doc = "" ]
64
47
#[ doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryHandle`, `FileSystemGetFileOptions`*" ]
65
- #[ doc = "" ]
66
- #[ doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as" ]
67
- #[ doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*" ]
68
48
pub fn get_file_handle_with_options (
69
49
this : & FileSystemDirectoryHandle ,
70
50
name : & str ,
71
51
options : & FileSystemGetFileOptions ,
72
52
) -> :: js_sys:: Promise ;
73
- #[ cfg( web_sys_unstable_apis) ]
74
53
# [ wasm_bindgen ( method , structural , js_class = "FileSystemDirectoryHandle" , js_name = removeEntry) ]
75
54
#[ doc = "The `removeEntry()` method." ]
76
55
#[ doc = "" ]
77
56
#[ doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryHandle/removeEntry)" ]
78
57
#[ doc = "" ]
79
58
#[ doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryHandle`*" ]
80
- #[ doc = "" ]
81
- #[ doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as" ]
82
- #[ doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*" ]
83
59
pub fn remove_entry ( this : & FileSystemDirectoryHandle , name : & str ) -> :: js_sys:: Promise ;
84
- #[ cfg( web_sys_unstable_apis) ]
85
60
#[ cfg( feature = "FileSystemRemoveOptions" ) ]
86
61
# [ wasm_bindgen ( method , structural , js_class = "FileSystemDirectoryHandle" , js_name = removeEntry) ]
87
62
#[ doc = "The `removeEntry()` method." ]
88
63
#[ doc = "" ]
89
64
#[ doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryHandle/removeEntry)" ]
90
65
#[ doc = "" ]
91
66
#[ doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryHandle`, `FileSystemRemoveOptions`*" ]
92
- #[ doc = "" ]
93
- #[ doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as" ]
94
- #[ doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*" ]
95
67
pub fn remove_entry_with_options (
96
68
this : & FileSystemDirectoryHandle ,
97
69
name : & str ,
98
70
options : & FileSystemRemoveOptions ,
99
71
) -> :: js_sys:: Promise ;
100
- #[ cfg( web_sys_unstable_apis) ]
101
72
# [ wasm_bindgen ( method , structural , js_class = "FileSystemDirectoryHandle" , js_name = resolve) ]
102
73
#[ doc = "The `resolve()` method." ]
103
74
#[ doc = "" ]
104
75
#[ doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryHandle/resolve)" ]
105
76
#[ doc = "" ]
106
77
#[ doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryHandle`*" ]
107
- #[ doc = "" ]
108
- #[ doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as" ]
109
- #[ doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*" ]
110
78
pub fn resolve (
111
79
this : & FileSystemDirectoryHandle ,
112
80
possible_descendant : & FileSystemHandle ,
0 commit comments