Skip to main content

web_sys/features/
gen_FileSystem.rs

1#![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 = "FileSystem",
10        typescript_type = "FileSystem"
11    )]
12    #[derive(Debug, Clone, PartialEq, Eq)]
13    #[doc = "The `FileSystem` class."]
14    #[doc = ""]
15    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystem)"]
16    #[doc = ""]
17    #[doc = "*This API requires the following crate features to be activated: `FileSystem`*"]
18    pub type FileSystem;
19    #[wasm_bindgen(method, getter, js_class = "FileSystem", js_name = "name")]
20    #[doc = "Getter for the `name` field of this object."]
21    #[doc = ""]
22    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystem/name)"]
23    #[doc = ""]
24    #[doc = "*This API requires the following crate features to be activated: `FileSystem`*"]
25    pub fn name(this: &FileSystem) -> ::alloc::string::String;
26    #[cfg(feature = "FileSystemDirectoryEntry")]
27    #[wasm_bindgen(method, getter, js_class = "FileSystem", js_name = "root")]
28    #[doc = "Getter for the `root` field of this object."]
29    #[doc = ""]
30    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystem/root)"]
31    #[doc = ""]
32    #[doc = "*This API requires the following crate features to be activated: `FileSystem`, `FileSystemDirectoryEntry`*"]
33    pub fn root(this: &FileSystem) -> FileSystemDirectoryEntry;
34}