From 837b550238aa671a591ccf282dddeab29cadb206 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 18 May 2024 04:49:42 +0200 Subject: Merging upstream version 1.71.1+dfsg1. Signed-off-by: Daniel Baumann --- vendor/web-sys/src/features/gen_IdbDatabase.rs | 200 +++++++++++++++++++++++++ 1 file changed, 200 insertions(+) create mode 100644 vendor/web-sys/src/features/gen_IdbDatabase.rs (limited to 'vendor/web-sys/src/features/gen_IdbDatabase.rs') diff --git a/vendor/web-sys/src/features/gen_IdbDatabase.rs b/vendor/web-sys/src/features/gen_IdbDatabase.rs new file mode 100644 index 000000000..ebcb2f627 --- /dev/null +++ b/vendor/web-sys/src/features/gen_IdbDatabase.rs @@ -0,0 +1,200 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = IDBDatabase , typescript_type = "IDBDatabase")] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `IdbDatabase` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`*"] + pub type IdbDatabase; + # [wasm_bindgen (structural , method , getter , js_class = "IDBDatabase" , js_name = name)] + #[doc = "Getter for the `name` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/name)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`*"] + pub fn name(this: &IdbDatabase) -> String; + # [wasm_bindgen (structural , method , getter , js_class = "IDBDatabase" , js_name = version)] + #[doc = "Getter for the `version` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/version)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`*"] + pub fn version(this: &IdbDatabase) -> f64; + #[cfg(feature = "DomStringList")] + # [wasm_bindgen (structural , method , getter , js_class = "IDBDatabase" , js_name = objectStoreNames)] + #[doc = "Getter for the `objectStoreNames` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/objectStoreNames)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomStringList`, `IdbDatabase`*"] + pub fn object_store_names(this: &IdbDatabase) -> DomStringList; + # [wasm_bindgen (structural , method , getter , js_class = "IDBDatabase" , js_name = onabort)] + #[doc = "Getter for the `onabort` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/onabort)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`*"] + pub fn onabort(this: &IdbDatabase) -> Option<::js_sys::Function>; + # [wasm_bindgen (structural , method , setter , js_class = "IDBDatabase" , js_name = onabort)] + #[doc = "Setter for the `onabort` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/onabort)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`*"] + pub fn set_onabort(this: &IdbDatabase, value: Option<&::js_sys::Function>); + # [wasm_bindgen (structural , method , getter , js_class = "IDBDatabase" , js_name = onclose)] + #[doc = "Getter for the `onclose` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/onclose)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`*"] + pub fn onclose(this: &IdbDatabase) -> Option<::js_sys::Function>; + # [wasm_bindgen (structural , method , setter , js_class = "IDBDatabase" , js_name = onclose)] + #[doc = "Setter for the `onclose` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/onclose)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`*"] + pub fn set_onclose(this: &IdbDatabase, value: Option<&::js_sys::Function>); + # [wasm_bindgen (structural , method , getter , js_class = "IDBDatabase" , js_name = onerror)] + #[doc = "Getter for the `onerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/onerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`*"] + pub fn onerror(this: &IdbDatabase) -> Option<::js_sys::Function>; + # [wasm_bindgen (structural , method , setter , js_class = "IDBDatabase" , js_name = onerror)] + #[doc = "Setter for the `onerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/onerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`*"] + pub fn set_onerror(this: &IdbDatabase, value: Option<&::js_sys::Function>); + # [wasm_bindgen (structural , method , getter , js_class = "IDBDatabase" , js_name = onversionchange)] + #[doc = "Getter for the `onversionchange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/onversionchange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`*"] + pub fn onversionchange(this: &IdbDatabase) -> Option<::js_sys::Function>; + # [wasm_bindgen (structural , method , setter , js_class = "IDBDatabase" , js_name = onversionchange)] + #[doc = "Setter for the `onversionchange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/onversionchange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`*"] + pub fn set_onversionchange(this: &IdbDatabase, value: Option<&::js_sys::Function>); + #[cfg(feature = "StorageType")] + # [wasm_bindgen (structural , method , getter , js_class = "IDBDatabase" , js_name = storage)] + #[doc = "Getter for the `storage` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/storage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`, `StorageType`*"] + pub fn storage(this: &IdbDatabase) -> StorageType; + # [wasm_bindgen (method , structural , js_class = "IDBDatabase" , js_name = close)] + #[doc = "The `close()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/close)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`*"] + pub fn close(this: &IdbDatabase); + #[cfg(feature = "IdbRequest")] + # [wasm_bindgen (catch , method , structural , js_class = "IDBDatabase" , js_name = createMutableFile)] + #[doc = "The `createMutableFile()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/createMutableFile)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`, `IdbRequest`*"] + pub fn create_mutable_file(this: &IdbDatabase, name: &str) -> Result; + #[cfg(feature = "IdbRequest")] + # [wasm_bindgen (catch , method , structural , js_class = "IDBDatabase" , js_name = createMutableFile)] + #[doc = "The `createMutableFile()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/createMutableFile)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`, `IdbRequest`*"] + pub fn create_mutable_file_with_type( + this: &IdbDatabase, + name: &str, + type_: &str, + ) -> Result; + #[cfg(feature = "IdbObjectStore")] + # [wasm_bindgen (catch , method , structural , js_class = "IDBDatabase" , js_name = createObjectStore)] + #[doc = "The `createObjectStore()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/createObjectStore)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`, `IdbObjectStore`*"] + pub fn create_object_store(this: &IdbDatabase, name: &str) -> Result; + #[cfg(all(feature = "IdbObjectStore", feature = "IdbObjectStoreParameters",))] + # [wasm_bindgen (catch , method , structural , js_class = "IDBDatabase" , js_name = createObjectStore)] + #[doc = "The `createObjectStore()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/createObjectStore)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`, `IdbObjectStore`, `IdbObjectStoreParameters`*"] + pub fn create_object_store_with_optional_parameters( + this: &IdbDatabase, + name: &str, + optional_parameters: &IdbObjectStoreParameters, + ) -> Result; + # [wasm_bindgen (catch , method , structural , js_class = "IDBDatabase" , js_name = deleteObjectStore)] + #[doc = "The `deleteObjectStore()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/deleteObjectStore)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`*"] + pub fn delete_object_store(this: &IdbDatabase, name: &str) -> Result<(), JsValue>; + #[cfg(feature = "IdbTransaction")] + # [wasm_bindgen (catch , method , structural , js_class = "IDBDatabase" , js_name = transaction)] + #[doc = "The `transaction()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/transaction)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`, `IdbTransaction`*"] + pub fn transaction_with_str( + this: &IdbDatabase, + store_names: &str, + ) -> Result; + #[cfg(feature = "IdbTransaction")] + # [wasm_bindgen (catch , method , structural , js_class = "IDBDatabase" , js_name = transaction)] + #[doc = "The `transaction()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/transaction)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`, `IdbTransaction`*"] + pub fn transaction_with_str_sequence( + this: &IdbDatabase, + store_names: &::wasm_bindgen::JsValue, + ) -> Result; + #[cfg(all(feature = "IdbTransaction", feature = "IdbTransactionMode",))] + # [wasm_bindgen (catch , method , structural , js_class = "IDBDatabase" , js_name = transaction)] + #[doc = "The `transaction()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/transaction)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`, `IdbTransaction`, `IdbTransactionMode`*"] + pub fn transaction_with_str_and_mode( + this: &IdbDatabase, + store_names: &str, + mode: IdbTransactionMode, + ) -> Result; + #[cfg(all(feature = "IdbTransaction", feature = "IdbTransactionMode",))] + # [wasm_bindgen (catch , method , structural , js_class = "IDBDatabase" , js_name = transaction)] + #[doc = "The `transaction()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/transaction)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`, `IdbTransaction`, `IdbTransactionMode`*"] + pub fn transaction_with_str_sequence_and_mode( + this: &IdbDatabase, + store_names: &::wasm_bindgen::JsValue, + mode: IdbTransactionMode, + ) -> Result; +} -- cgit v1.2.3