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