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