1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
#![allow(unused_imports)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
    # [wasm_bindgen (extends = :: js_sys :: Object , js_name = IDBCursor , typescript_type = "IDBCursor")]
    #[derive(Debug, Clone, PartialEq, Eq)]
    #[doc = "The `IdbCursor` class."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBCursor)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `IdbCursor`*"]
    pub type IdbCursor;
    # [wasm_bindgen (structural , method , getter , js_class = "IDBCursor" , js_name = source)]
    #[doc = "Getter for the `source` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBCursor/source)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `IdbCursor`*"]
    pub fn source(this: &IdbCursor) -> ::js_sys::Object;
    #[cfg(feature = "IdbCursorDirection")]
    # [wasm_bindgen (structural , method , getter , js_class = "IDBCursor" , js_name = direction)]
    #[doc = "Getter for the `direction` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBCursor/direction)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `IdbCursor`, `IdbCursorDirection`*"]
    pub fn direction(this: &IdbCursor) -> IdbCursorDirection;
    # [wasm_bindgen (structural , catch , method , getter , js_class = "IDBCursor" , js_name = key)]
    #[doc = "Getter for the `key` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBCursor/key)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `IdbCursor`*"]
    pub fn key(this: &IdbCursor) -> Result<::wasm_bindgen::JsValue, JsValue>;
    # [wasm_bindgen (structural , catch , method , getter , js_class = "IDBCursor" , js_name = primaryKey)]
    #[doc = "Getter for the `primaryKey` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBCursor/primaryKey)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `IdbCursor`*"]
    pub fn primary_key(this: &IdbCursor) -> Result<::wasm_bindgen::JsValue, JsValue>;
    #[cfg(feature = "IdbRequest")]
    # [wasm_bindgen (structural , method , getter , js_class = "IDBCursor" , js_name = request)]
    #[doc = "Getter for the `request` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBCursor/request)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `IdbCursor`, `IdbRequest`*"]
    pub fn request(this: &IdbCursor) -> IdbRequest;
    # [wasm_bindgen (catch , method , structural , js_class = "IDBCursor" , js_name = advance)]
    #[doc = "The `advance()` method."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBCursor/advance)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `IdbCursor`*"]
    pub fn advance(this: &IdbCursor, count: u32) -> Result<(), JsValue>;
    # [wasm_bindgen (catch , method , structural , js_class = "IDBCursor" , js_name = continue)]
    #[doc = "The `continue()` method."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBCursor/continue)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `IdbCursor`*"]
    pub fn continue_(this: &IdbCursor) -> Result<(), JsValue>;
    # [wasm_bindgen (catch , method , structural , js_class = "IDBCursor" , js_name = continue)]
    #[doc = "The `continue()` method."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBCursor/continue)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `IdbCursor`*"]
    pub fn continue_with_key(
        this: &IdbCursor,
        key: &::wasm_bindgen::JsValue,
    ) -> Result<(), JsValue>;
    # [wasm_bindgen (catch , method , structural , js_class = "IDBCursor" , js_name = continuePrimaryKey)]
    #[doc = "The `continuePrimaryKey()` method."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBCursor/continuePrimaryKey)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `IdbCursor`*"]
    pub fn continue_primary_key(
        this: &IdbCursor,
        key: &::wasm_bindgen::JsValue,
        primary_key: &::wasm_bindgen::JsValue,
    ) -> Result<(), JsValue>;
    #[cfg(feature = "IdbRequest")]
    # [wasm_bindgen (catch , method , structural , js_class = "IDBCursor" , js_name = delete)]
    #[doc = "The `delete()` method."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBCursor/delete)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `IdbCursor`, `IdbRequest`*"]
    pub fn delete(this: &IdbCursor) -> Result<IdbRequest, JsValue>;
    #[cfg(feature = "IdbRequest")]
    # [wasm_bindgen (catch , method , structural , js_class = "IDBCursor" , js_name = update)]
    #[doc = "The `update()` method."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBCursor/update)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `IdbCursor`, `IdbRequest`*"]
    pub fn update(this: &IdbCursor, value: &::wasm_bindgen::JsValue)
        -> Result<IdbRequest, JsValue>;
}