web_sys/features/
gen_IdbIndex.rs

1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7    # [wasm_bindgen (extends = :: js_sys :: Object , js_name = IDBIndex , typescript_type = "IDBIndex")]
8    #[derive(Debug, Clone, PartialEq, Eq)]
9    #[doc = "The `IdbIndex` class."]
10    #[doc = ""]
11    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex)"]
12    #[doc = ""]
13    #[doc = "*This API requires the following crate features to be activated: `IdbIndex`*"]
14    pub type IdbIndex;
15    # [wasm_bindgen (structural , method , getter , js_class = "IDBIndex" , js_name = name)]
16    #[doc = "Getter for the `name` field of this object."]
17    #[doc = ""]
18    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/name)"]
19    #[doc = ""]
20    #[doc = "*This API requires the following crate features to be activated: `IdbIndex`*"]
21    pub fn name(this: &IdbIndex) -> ::alloc::string::String;
22    # [wasm_bindgen (structural , method , setter , js_class = "IDBIndex" , js_name = name)]
23    #[doc = "Setter for the `name` field of this object."]
24    #[doc = ""]
25    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/name)"]
26    #[doc = ""]
27    #[doc = "*This API requires the following crate features to be activated: `IdbIndex`*"]
28    pub fn set_name(this: &IdbIndex, value: &str);
29    #[cfg(feature = "IdbObjectStore")]
30    # [wasm_bindgen (structural , method , getter , js_class = "IDBIndex" , js_name = objectStore)]
31    #[doc = "Getter for the `objectStore` field of this object."]
32    #[doc = ""]
33    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/objectStore)"]
34    #[doc = ""]
35    #[doc = "*This API requires the following crate features to be activated: `IdbIndex`, `IdbObjectStore`*"]
36    pub fn object_store(this: &IdbIndex) -> IdbObjectStore;
37    # [wasm_bindgen (structural , catch , method , getter , js_class = "IDBIndex" , js_name = keyPath)]
38    #[doc = "Getter for the `keyPath` field of this object."]
39    #[doc = ""]
40    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/keyPath)"]
41    #[doc = ""]
42    #[doc = "*This API requires the following crate features to be activated: `IdbIndex`*"]
43    pub fn key_path(this: &IdbIndex) -> Result<::wasm_bindgen::JsValue, JsValue>;
44    # [wasm_bindgen (structural , method , getter , js_class = "IDBIndex" , js_name = multiEntry)]
45    #[doc = "Getter for the `multiEntry` field of this object."]
46    #[doc = ""]
47    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/multiEntry)"]
48    #[doc = ""]
49    #[doc = "*This API requires the following crate features to be activated: `IdbIndex`*"]
50    pub fn multi_entry(this: &IdbIndex) -> bool;
51    # [wasm_bindgen (structural , method , getter , js_class = "IDBIndex" , js_name = unique)]
52    #[doc = "Getter for the `unique` field of this object."]
53    #[doc = ""]
54    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/unique)"]
55    #[doc = ""]
56    #[doc = "*This API requires the following crate features to be activated: `IdbIndex`*"]
57    pub fn unique(this: &IdbIndex) -> bool;
58    # [wasm_bindgen (structural , method , getter , js_class = "IDBIndex" , js_name = locale)]
59    #[doc = "Getter for the `locale` field of this object."]
60    #[doc = ""]
61    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/locale)"]
62    #[doc = ""]
63    #[doc = "*This API requires the following crate features to be activated: `IdbIndex`*"]
64    #[deprecated]
65    pub fn locale(this: &IdbIndex) -> Option<::alloc::string::String>;
66    # [wasm_bindgen (structural , method , getter , js_class = "IDBIndex" , js_name = isAutoLocale)]
67    #[doc = "Getter for the `isAutoLocale` field of this object."]
68    #[doc = ""]
69    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/isAutoLocale)"]
70    #[doc = ""]
71    #[doc = "*This API requires the following crate features to be activated: `IdbIndex`*"]
72    #[deprecated]
73    pub fn is_auto_locale(this: &IdbIndex) -> bool;
74    #[cfg(feature = "IdbRequest")]
75    # [wasm_bindgen (catch , method , structural , js_class = "IDBIndex" , js_name = count)]
76    #[doc = "The `count()` method."]
77    #[doc = ""]
78    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/count)"]
79    #[doc = ""]
80    #[doc = "*This API requires the following crate features to be activated: `IdbIndex`, `IdbRequest`*"]
81    pub fn count(this: &IdbIndex) -> Result<IdbRequest, JsValue>;
82    #[cfg(feature = "IdbRequest")]
83    # [wasm_bindgen (catch , method , structural , js_class = "IDBIndex" , js_name = count)]
84    #[doc = "The `count()` method."]
85    #[doc = ""]
86    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/count)"]
87    #[doc = ""]
88    #[doc = "*This API requires the following crate features to be activated: `IdbIndex`, `IdbRequest`*"]
89    pub fn count_with_key(
90        this: &IdbIndex,
91        query: &::wasm_bindgen::JsValue,
92    ) -> Result<IdbRequest, JsValue>;
93    #[cfg(feature = "IdbRequest")]
94    # [wasm_bindgen (catch , method , structural , js_class = "IDBIndex" , js_name = get)]
95    #[doc = "The `get()` method."]
96    #[doc = ""]
97    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/get)"]
98    #[doc = ""]
99    #[doc = "*This API requires the following crate features to be activated: `IdbIndex`, `IdbRequest`*"]
100    pub fn get(this: &IdbIndex, query: &::wasm_bindgen::JsValue) -> Result<IdbRequest, JsValue>;
101    #[cfg(feature = "IdbRequest")]
102    # [wasm_bindgen (catch , method , structural , js_class = "IDBIndex" , js_name = getAll)]
103    #[doc = "The `getAll()` method."]
104    #[doc = ""]
105    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/getAll)"]
106    #[doc = ""]
107    #[doc = "*This API requires the following crate features to be activated: `IdbIndex`, `IdbRequest`*"]
108    pub fn get_all(this: &IdbIndex) -> Result<IdbRequest, JsValue>;
109    #[cfg(feature = "IdbRequest")]
110    # [wasm_bindgen (catch , method , structural , js_class = "IDBIndex" , js_name = getAll)]
111    #[doc = "The `getAll()` method."]
112    #[doc = ""]
113    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/getAll)"]
114    #[doc = ""]
115    #[doc = "*This API requires the following crate features to be activated: `IdbIndex`, `IdbRequest`*"]
116    pub fn get_all_with_key(
117        this: &IdbIndex,
118        query: &::wasm_bindgen::JsValue,
119    ) -> Result<IdbRequest, JsValue>;
120    #[cfg(feature = "IdbRequest")]
121    # [wasm_bindgen (catch , method , structural , js_class = "IDBIndex" , js_name = getAll)]
122    #[doc = "The `getAll()` method."]
123    #[doc = ""]
124    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/getAll)"]
125    #[doc = ""]
126    #[doc = "*This API requires the following crate features to be activated: `IdbIndex`, `IdbRequest`*"]
127    pub fn get_all_with_key_and_limit(
128        this: &IdbIndex,
129        query: &::wasm_bindgen::JsValue,
130        count: u32,
131    ) -> Result<IdbRequest, JsValue>;
132    #[cfg(feature = "IdbRequest")]
133    # [wasm_bindgen (catch , method , structural , js_class = "IDBIndex" , js_name = getAllKeys)]
134    #[doc = "The `getAllKeys()` method."]
135    #[doc = ""]
136    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/getAllKeys)"]
137    #[doc = ""]
138    #[doc = "*This API requires the following crate features to be activated: `IdbIndex`, `IdbRequest`*"]
139    pub fn get_all_keys(this: &IdbIndex) -> Result<IdbRequest, JsValue>;
140    #[cfg(feature = "IdbRequest")]
141    # [wasm_bindgen (catch , method , structural , js_class = "IDBIndex" , js_name = getAllKeys)]
142    #[doc = "The `getAllKeys()` method."]
143    #[doc = ""]
144    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/getAllKeys)"]
145    #[doc = ""]
146    #[doc = "*This API requires the following crate features to be activated: `IdbIndex`, `IdbRequest`*"]
147    pub fn get_all_keys_with_key(
148        this: &IdbIndex,
149        query: &::wasm_bindgen::JsValue,
150    ) -> Result<IdbRequest, JsValue>;
151    #[cfg(feature = "IdbRequest")]
152    # [wasm_bindgen (catch , method , structural , js_class = "IDBIndex" , js_name = getAllKeys)]
153    #[doc = "The `getAllKeys()` method."]
154    #[doc = ""]
155    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/getAllKeys)"]
156    #[doc = ""]
157    #[doc = "*This API requires the following crate features to be activated: `IdbIndex`, `IdbRequest`*"]
158    pub fn get_all_keys_with_key_and_limit(
159        this: &IdbIndex,
160        query: &::wasm_bindgen::JsValue,
161        count: u32,
162    ) -> Result<IdbRequest, JsValue>;
163    #[cfg(feature = "IdbRequest")]
164    # [wasm_bindgen (catch , method , structural , js_class = "IDBIndex" , js_name = getKey)]
165    #[doc = "The `getKey()` method."]
166    #[doc = ""]
167    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/getKey)"]
168    #[doc = ""]
169    #[doc = "*This API requires the following crate features to be activated: `IdbIndex`, `IdbRequest`*"]
170    pub fn get_key(this: &IdbIndex, query: &::wasm_bindgen::JsValue)
171        -> Result<IdbRequest, JsValue>;
172    #[cfg(feature = "IdbRequest")]
173    # [wasm_bindgen (catch , method , structural , js_class = "IDBIndex" , js_name = openCursor)]
174    #[doc = "The `openCursor()` method."]
175    #[doc = ""]
176    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/openCursor)"]
177    #[doc = ""]
178    #[doc = "*This API requires the following crate features to be activated: `IdbIndex`, `IdbRequest`*"]
179    pub fn open_cursor(this: &IdbIndex) -> Result<IdbRequest, JsValue>;
180    #[cfg(feature = "IdbRequest")]
181    # [wasm_bindgen (catch , method , structural , js_class = "IDBIndex" , js_name = openCursor)]
182    #[doc = "The `openCursor()` method."]
183    #[doc = ""]
184    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/openCursor)"]
185    #[doc = ""]
186    #[doc = "*This API requires the following crate features to be activated: `IdbIndex`, `IdbRequest`*"]
187    pub fn open_cursor_with_range(
188        this: &IdbIndex,
189        query: &::wasm_bindgen::JsValue,
190    ) -> Result<IdbRequest, JsValue>;
191    #[cfg(all(feature = "IdbCursorDirection", feature = "IdbRequest",))]
192    # [wasm_bindgen (catch , method , structural , js_class = "IDBIndex" , js_name = openCursor)]
193    #[doc = "The `openCursor()` method."]
194    #[doc = ""]
195    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/openCursor)"]
196    #[doc = ""]
197    #[doc = "*This API requires the following crate features to be activated: `IdbCursorDirection`, `IdbIndex`, `IdbRequest`*"]
198    pub fn open_cursor_with_range_and_direction(
199        this: &IdbIndex,
200        query: &::wasm_bindgen::JsValue,
201        direction: IdbCursorDirection,
202    ) -> Result<IdbRequest, JsValue>;
203    #[cfg(feature = "IdbRequest")]
204    # [wasm_bindgen (catch , method , structural , js_class = "IDBIndex" , js_name = openKeyCursor)]
205    #[doc = "The `openKeyCursor()` method."]
206    #[doc = ""]
207    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/openKeyCursor)"]
208    #[doc = ""]
209    #[doc = "*This API requires the following crate features to be activated: `IdbIndex`, `IdbRequest`*"]
210    pub fn open_key_cursor(this: &IdbIndex) -> Result<IdbRequest, JsValue>;
211    #[cfg(feature = "IdbRequest")]
212    # [wasm_bindgen (catch , method , structural , js_class = "IDBIndex" , js_name = openKeyCursor)]
213    #[doc = "The `openKeyCursor()` method."]
214    #[doc = ""]
215    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/openKeyCursor)"]
216    #[doc = ""]
217    #[doc = "*This API requires the following crate features to be activated: `IdbIndex`, `IdbRequest`*"]
218    pub fn open_key_cursor_with_range(
219        this: &IdbIndex,
220        query: &::wasm_bindgen::JsValue,
221    ) -> Result<IdbRequest, JsValue>;
222    #[cfg(all(feature = "IdbCursorDirection", feature = "IdbRequest",))]
223    # [wasm_bindgen (catch , method , structural , js_class = "IDBIndex" , js_name = openKeyCursor)]
224    #[doc = "The `openKeyCursor()` method."]
225    #[doc = ""]
226    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/openKeyCursor)"]
227    #[doc = ""]
228    #[doc = "*This API requires the following crate features to be activated: `IdbCursorDirection`, `IdbIndex`, `IdbRequest`*"]
229    pub fn open_key_cursor_with_range_and_direction(
230        this: &IdbIndex,
231        query: &::wasm_bindgen::JsValue,
232        direction: IdbCursorDirection,
233    ) -> Result<IdbRequest, JsValue>;
234}