maxcountryman_web_sys/features/
gen_Directory.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 = Directory , typescript_type = "Directory")]
7    #[derive(Debug, Clone, PartialEq, Eq)]
8    #[doc = "The `Directory` class."]
9    #[doc = ""]
10    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Directory)"]
11    #[doc = ""]
12    #[doc = "*This API requires the following crate features to be activated: `Directory`*"]
13    pub type Directory;
14    # [wasm_bindgen (structural , catch , method , getter , js_class = "Directory" , js_name = name)]
15    #[doc = "Getter for the `name` field of this object."]
16    #[doc = ""]
17    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Directory/name)"]
18    #[doc = ""]
19    #[doc = "*This API requires the following crate features to be activated: `Directory`*"]
20    pub fn name(this: &Directory) -> Result<String, JsValue>;
21    # [wasm_bindgen (structural , catch , method , getter , js_class = "Directory" , js_name = path)]
22    #[doc = "Getter for the `path` field of this object."]
23    #[doc = ""]
24    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Directory/path)"]
25    #[doc = ""]
26    #[doc = "*This API requires the following crate features to be activated: `Directory`*"]
27    pub fn path(this: &Directory) -> Result<String, JsValue>;
28    # [wasm_bindgen (catch , method , structural , js_class = "Directory" , js_name = getFiles)]
29    #[doc = "The `getFiles()` method."]
30    #[doc = ""]
31    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Directory/getFiles)"]
32    #[doc = ""]
33    #[doc = "*This API requires the following crate features to be activated: `Directory`*"]
34    pub fn get_files(this: &Directory) -> Result<::js_sys::Promise, JsValue>;
35    # [wasm_bindgen (catch , method , structural , js_class = "Directory" , js_name = getFiles)]
36    #[doc = "The `getFiles()` method."]
37    #[doc = ""]
38    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Directory/getFiles)"]
39    #[doc = ""]
40    #[doc = "*This API requires the following crate features to be activated: `Directory`*"]
41    pub fn get_files_with_recursive_flag(
42        this: &Directory,
43        recursive_flag: bool,
44    ) -> Result<::js_sys::Promise, JsValue>;
45    # [wasm_bindgen (catch , method , structural , js_class = "Directory" , js_name = getFilesAndDirectories)]
46    #[doc = "The `getFilesAndDirectories()` method."]
47    #[doc = ""]
48    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Directory/getFilesAndDirectories)"]
49    #[doc = ""]
50    #[doc = "*This API requires the following crate features to be activated: `Directory`*"]
51    pub fn get_files_and_directories(this: &Directory) -> Result<::js_sys::Promise, JsValue>;
52}