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