maxcountryman_web_sys/features/
gen_IdbMutableFile.rs

1#![allow(unused_imports)]
2use super::*;
3use wasm_bindgen::prelude::*;
4#[wasm_bindgen]
5extern "C" {
6    # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = IDBMutableFile , typescript_type = "IDBMutableFile")]
7    #[derive(Debug, Clone, PartialEq, Eq)]
8    #[doc = "The `IdbMutableFile` class."]
9    #[doc = ""]
10    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBMutableFile)"]
11    #[doc = ""]
12    #[doc = "*This API requires the following crate features to be activated: `IdbMutableFile`*"]
13    pub type IdbMutableFile;
14    # [wasm_bindgen (structural , method , getter , js_class = "IDBMutableFile" , 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/IDBMutableFile/name)"]
18    #[doc = ""]
19    #[doc = "*This API requires the following crate features to be activated: `IdbMutableFile`*"]
20    pub fn name(this: &IdbMutableFile) -> String;
21    # [wasm_bindgen (structural , method , getter , js_class = "IDBMutableFile" , js_name = type)]
22    #[doc = "Getter for the `type` field of this object."]
23    #[doc = ""]
24    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBMutableFile/type)"]
25    #[doc = ""]
26    #[doc = "*This API requires the following crate features to be activated: `IdbMutableFile`*"]
27    pub fn type_(this: &IdbMutableFile) -> String;
28    #[cfg(feature = "IdbDatabase")]
29    # [wasm_bindgen (structural , method , getter , js_class = "IDBMutableFile" , js_name = database)]
30    #[doc = "Getter for the `database` field of this object."]
31    #[doc = ""]
32    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBMutableFile/database)"]
33    #[doc = ""]
34    #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`, `IdbMutableFile`*"]
35    pub fn database(this: &IdbMutableFile) -> IdbDatabase;
36    # [wasm_bindgen (structural , method , getter , js_class = "IDBMutableFile" , js_name = onabort)]
37    #[doc = "Getter for the `onabort` field of this object."]
38    #[doc = ""]
39    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBMutableFile/onabort)"]
40    #[doc = ""]
41    #[doc = "*This API requires the following crate features to be activated: `IdbMutableFile`*"]
42    pub fn onabort(this: &IdbMutableFile) -> Option<::js_sys::Function>;
43    # [wasm_bindgen (structural , method , setter , js_class = "IDBMutableFile" , js_name = onabort)]
44    #[doc = "Setter for the `onabort` field of this object."]
45    #[doc = ""]
46    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBMutableFile/onabort)"]
47    #[doc = ""]
48    #[doc = "*This API requires the following crate features to be activated: `IdbMutableFile`*"]
49    pub fn set_onabort(this: &IdbMutableFile, value: Option<&::js_sys::Function>);
50    # [wasm_bindgen (structural , method , getter , js_class = "IDBMutableFile" , js_name = onerror)]
51    #[doc = "Getter for the `onerror` field of this object."]
52    #[doc = ""]
53    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBMutableFile/onerror)"]
54    #[doc = ""]
55    #[doc = "*This API requires the following crate features to be activated: `IdbMutableFile`*"]
56    pub fn onerror(this: &IdbMutableFile) -> Option<::js_sys::Function>;
57    # [wasm_bindgen (structural , method , setter , js_class = "IDBMutableFile" , js_name = onerror)]
58    #[doc = "Setter for the `onerror` field of this object."]
59    #[doc = ""]
60    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBMutableFile/onerror)"]
61    #[doc = ""]
62    #[doc = "*This API requires the following crate features to be activated: `IdbMutableFile`*"]
63    pub fn set_onerror(this: &IdbMutableFile, value: Option<&::js_sys::Function>);
64    #[cfg(feature = "DomRequest")]
65    # [wasm_bindgen (catch , method , structural , js_class = "IDBMutableFile" , js_name = getFile)]
66    #[doc = "The `getFile()` method."]
67    #[doc = ""]
68    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBMutableFile/getFile)"]
69    #[doc = ""]
70    #[doc = "*This API requires the following crate features to be activated: `DomRequest`, `IdbMutableFile`*"]
71    pub fn get_file(this: &IdbMutableFile) -> Result<DomRequest, JsValue>;
72    #[cfg(feature = "IdbFileHandle")]
73    # [wasm_bindgen (catch , method , structural , js_class = "IDBMutableFile" , js_name = open)]
74    #[doc = "The `open()` method."]
75    #[doc = ""]
76    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBMutableFile/open)"]
77    #[doc = ""]
78    #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbMutableFile`*"]
79    pub fn open(this: &IdbMutableFile) -> Result<IdbFileHandle, JsValue>;
80}