maxcountryman_web_sys/features/
gen_FileSystemEntry.rs

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