web_sys/features/
gen_FileSystemEntry.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 = "FileSystemEntry",
10 typescript_type = "FileSystemEntry"
11 )]
12 #[derive(Debug, Clone, PartialEq, Eq)]
13 #[doc = "The `FileSystemEntry` class."]
14 #[doc = ""]
15 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemEntry)"]
16 #[doc = ""]
17 #[doc = "*This API requires the following crate features to be activated: `FileSystemEntry`*"]
18 pub type FileSystemEntry;
19 #[wasm_bindgen(method, getter, js_class = "FileSystemEntry", js_name = "isFile")]
20 #[doc = "Getter for the `isFile` field of this object."]
21 #[doc = ""]
22 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemEntry/isFile)"]
23 #[doc = ""]
24 #[doc = "*This API requires the following crate features to be activated: `FileSystemEntry`*"]
25 pub fn is_file(this: &FileSystemEntry) -> bool;
26 #[wasm_bindgen(method, getter, js_class = "FileSystemEntry", js_name = "isDirectory")]
27 #[doc = "Getter for the `isDirectory` field of this object."]
28 #[doc = ""]
29 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemEntry/isDirectory)"]
30 #[doc = ""]
31 #[doc = "*This API requires the following crate features to be activated: `FileSystemEntry`*"]
32 pub fn is_directory(this: &FileSystemEntry) -> bool;
33 #[wasm_bindgen(method, getter, js_class = "FileSystemEntry", js_name = "name")]
34 #[doc = "Getter for the `name` field of this object."]
35 #[doc = ""]
36 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemEntry/name)"]
37 #[doc = ""]
38 #[doc = "*This API requires the following crate features to be activated: `FileSystemEntry`*"]
39 pub fn name(this: &FileSystemEntry) -> ::alloc::string::String;
40 #[wasm_bindgen(method, getter, js_class = "FileSystemEntry", js_name = "fullPath")]
41 #[doc = "Getter for the `fullPath` field of this object."]
42 #[doc = ""]
43 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemEntry/fullPath)"]
44 #[doc = ""]
45 #[doc = "*This API requires the following crate features to be activated: `FileSystemEntry`*"]
46 pub fn full_path(this: &FileSystemEntry) -> ::alloc::string::String;
47 #[cfg(feature = "FileSystem")]
48 #[wasm_bindgen(method, getter, js_class = "FileSystemEntry", js_name = "filesystem")]
49 #[doc = "Getter for the `filesystem` field of this object."]
50 #[doc = ""]
51 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemEntry/filesystem)"]
52 #[doc = ""]
53 #[doc = "*This API requires the following crate features to be activated: `FileSystem`, `FileSystemEntry`*"]
54 pub fn filesystem(this: &FileSystemEntry) -> FileSystem;
55 #[wasm_bindgen(method, js_class = "FileSystemEntry", js_name = "getParent")]
56 #[doc = "The `getParent()` method."]
57 #[doc = ""]
58 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemEntry/getParent)"]
59 #[doc = ""]
60 #[doc = "*This API requires the following crate features to be activated: `FileSystemEntry`*"]
61 pub fn get_parent(this: &FileSystemEntry);
62 #[wasm_bindgen(method, js_class = "FileSystemEntry", js_name = "getParent")]
63 #[doc = "The `getParent()` method."]
64 #[doc = ""]
65 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemEntry/getParent)"]
66 #[doc = ""]
67 #[doc = "*This API requires the following crate features to be activated: `FileSystemEntry`*"]
68 pub fn get_parent_with_callback(this: &FileSystemEntry, success_callback: &::js_sys::Function);
69 #[cfg(feature = "FileSystemEntryCallback")]
70 #[wasm_bindgen(method, js_class = "FileSystemEntry", js_name = "getParent")]
71 #[doc = "The `getParent()` method."]
72 #[doc = ""]
73 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemEntry/getParent)"]
74 #[doc = ""]
75 #[doc = "*This API requires the following crate features to be activated: `FileSystemEntry`, `FileSystemEntryCallback`*"]
76 pub fn get_parent_with_file_system_entry_callback(
77 this: &FileSystemEntry,
78 success_callback: &FileSystemEntryCallback,
79 );
80 #[wasm_bindgen(method, js_class = "FileSystemEntry", js_name = "getParent")]
81 #[doc = "The `getParent()` method."]
82 #[doc = ""]
83 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemEntry/getParent)"]
84 #[doc = ""]
85 #[doc = "*This API requires the following crate features to be activated: `FileSystemEntry`*"]
86 pub fn get_parent_with_callback_and_callback(
87 this: &FileSystemEntry,
88 success_callback: &::js_sys::Function,
89 error_callback: &::js_sys::Function,
90 );
91 #[cfg(feature = "FileSystemEntryCallback")]
92 #[wasm_bindgen(method, js_class = "FileSystemEntry", js_name = "getParent")]
93 #[doc = "The `getParent()` method."]
94 #[doc = ""]
95 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemEntry/getParent)"]
96 #[doc = ""]
97 #[doc = "*This API requires the following crate features to be activated: `FileSystemEntry`, `FileSystemEntryCallback`*"]
98 pub fn get_parent_with_file_system_entry_callback_and_callback(
99 this: &FileSystemEntry,
100 success_callback: &FileSystemEntryCallback,
101 error_callback: &::js_sys::Function,
102 );
103 #[cfg(feature = "ErrorCallback")]
104 #[wasm_bindgen(method, js_class = "FileSystemEntry", js_name = "getParent")]
105 #[doc = "The `getParent()` method."]
106 #[doc = ""]
107 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemEntry/getParent)"]
108 #[doc = ""]
109 #[doc = "*This API requires the following crate features to be activated: `ErrorCallback`, `FileSystemEntry`*"]
110 pub fn get_parent_with_callback_and_error_callback(
111 this: &FileSystemEntry,
112 success_callback: &::js_sys::Function,
113 error_callback: &ErrorCallback,
114 );
115 #[cfg(all(feature = "ErrorCallback", feature = "FileSystemEntryCallback",))]
116 #[wasm_bindgen(method, js_class = "FileSystemEntry", js_name = "getParent")]
117 #[doc = "The `getParent()` method."]
118 #[doc = ""]
119 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemEntry/getParent)"]
120 #[doc = ""]
121 #[doc = "*This API requires the following crate features to be activated: `ErrorCallback`, `FileSystemEntry`, `FileSystemEntryCallback`*"]
122 pub fn get_parent_with_file_system_entry_callback_and_error_callback(
123 this: &FileSystemEntry,
124 success_callback: &FileSystemEntryCallback,
125 error_callback: &ErrorCallback,
126 );
127}