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 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230
#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = Blob , typescript_type = "Blob")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Blob` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`*"] pub type Blob; # [wasm_bindgen (structural , method , getter , js_class = "Blob" , js_name = size)] #[doc = "Getter for the `size` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/size)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`*"] pub fn size(this: &Blob) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "Blob" , js_name = type)] #[doc = "Getter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`*"] pub fn type_(this: &Blob) -> String; #[wasm_bindgen(catch, constructor, js_class = "Blob")] #[doc = "The `new Blob(..)` constructor, creating a new instance of `Blob`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/Blob)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`*"] pub fn new() -> Result<Blob, JsValue>; #[wasm_bindgen(catch, constructor, js_class = "Blob")] #[doc = "The `new Blob(..)` constructor, creating a new instance of `Blob`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/Blob)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`*"] pub fn new_with_buffer_source_sequence( blob_parts: &::wasm_bindgen::JsValue, ) -> Result<Blob, JsValue>; #[wasm_bindgen(catch, constructor, js_class = "Blob")] #[doc = "The `new Blob(..)` constructor, creating a new instance of `Blob`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/Blob)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`*"] pub fn new_with_u8_array_sequence( blob_parts: &::wasm_bindgen::JsValue, ) -> Result<Blob, JsValue>; #[wasm_bindgen(catch, constructor, js_class = "Blob")] #[doc = "The `new Blob(..)` constructor, creating a new instance of `Blob`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/Blob)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`*"] pub fn new_with_blob_sequence(blob_parts: &::wasm_bindgen::JsValue) -> Result<Blob, JsValue>; #[wasm_bindgen(catch, constructor, js_class = "Blob")] #[doc = "The `new Blob(..)` constructor, creating a new instance of `Blob`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/Blob)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`*"] pub fn new_with_str_sequence(blob_parts: &::wasm_bindgen::JsValue) -> Result<Blob, JsValue>; #[cfg(feature = "BlobPropertyBag")] #[wasm_bindgen(catch, constructor, js_class = "Blob")] #[doc = "The `new Blob(..)` constructor, creating a new instance of `Blob`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/Blob)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`, `BlobPropertyBag`*"] pub fn new_with_buffer_source_sequence_and_options( blob_parts: &::wasm_bindgen::JsValue, options: &BlobPropertyBag, ) -> Result<Blob, JsValue>; #[cfg(feature = "BlobPropertyBag")] #[wasm_bindgen(catch, constructor, js_class = "Blob")] #[doc = "The `new Blob(..)` constructor, creating a new instance of `Blob`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/Blob)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`, `BlobPropertyBag`*"] pub fn new_with_u8_array_sequence_and_options( blob_parts: &::wasm_bindgen::JsValue, options: &BlobPropertyBag, ) -> Result<Blob, JsValue>; #[cfg(feature = "BlobPropertyBag")] #[wasm_bindgen(catch, constructor, js_class = "Blob")] #[doc = "The `new Blob(..)` constructor, creating a new instance of `Blob`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/Blob)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`, `BlobPropertyBag`*"] pub fn new_with_blob_sequence_and_options( blob_parts: &::wasm_bindgen::JsValue, options: &BlobPropertyBag, ) -> Result<Blob, JsValue>; #[cfg(feature = "BlobPropertyBag")] #[wasm_bindgen(catch, constructor, js_class = "Blob")] #[doc = "The `new Blob(..)` constructor, creating a new instance of `Blob`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/Blob)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`, `BlobPropertyBag`*"] pub fn new_with_str_sequence_and_options( blob_parts: &::wasm_bindgen::JsValue, options: &BlobPropertyBag, ) -> Result<Blob, JsValue>; # [wasm_bindgen (method , structural , js_class = "Blob" , js_name = arrayBuffer)] #[doc = "The `arrayBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/arrayBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`*"] pub fn array_buffer(this: &Blob) -> ::js_sys::Promise; # [wasm_bindgen (catch , method , structural , js_class = "Blob" , js_name = slice)] #[doc = "The `slice()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/slice)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`*"] pub fn slice(this: &Blob) -> Result<Blob, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Blob" , js_name = slice)] #[doc = "The `slice()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/slice)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`*"] pub fn slice_with_i32(this: &Blob, start: i32) -> Result<Blob, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Blob" , js_name = slice)] #[doc = "The `slice()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/slice)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`*"] pub fn slice_with_f64(this: &Blob, start: f64) -> Result<Blob, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Blob" , js_name = slice)] #[doc = "The `slice()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/slice)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`*"] pub fn slice_with_i32_and_i32(this: &Blob, start: i32, end: i32) -> Result<Blob, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Blob" , js_name = slice)] #[doc = "The `slice()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/slice)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`*"] pub fn slice_with_f64_and_i32(this: &Blob, start: f64, end: i32) -> Result<Blob, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Blob" , js_name = slice)] #[doc = "The `slice()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/slice)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`*"] pub fn slice_with_i32_and_f64(this: &Blob, start: i32, end: f64) -> Result<Blob, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Blob" , js_name = slice)] #[doc = "The `slice()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/slice)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`*"] pub fn slice_with_f64_and_f64(this: &Blob, start: f64, end: f64) -> Result<Blob, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Blob" , js_name = slice)] #[doc = "The `slice()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/slice)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`*"] pub fn slice_with_i32_and_i32_and_content_type( this: &Blob, start: i32, end: i32, content_type: &str, ) -> Result<Blob, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Blob" , js_name = slice)] #[doc = "The `slice()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/slice)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`*"] pub fn slice_with_f64_and_i32_and_content_type( this: &Blob, start: f64, end: i32, content_type: &str, ) -> Result<Blob, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Blob" , js_name = slice)] #[doc = "The `slice()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/slice)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`*"] pub fn slice_with_i32_and_f64_and_content_type( this: &Blob, start: i32, end: f64, content_type: &str, ) -> Result<Blob, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Blob" , js_name = slice)] #[doc = "The `slice()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/slice)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`*"] pub fn slice_with_f64_and_f64_and_content_type( this: &Blob, start: f64, end: f64, content_type: &str, ) -> Result<Blob, JsValue>; #[cfg(feature = "ReadableStream")] # [wasm_bindgen (method , structural , js_class = "Blob" , js_name = stream)] #[doc = "The `stream()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/stream)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`, `ReadableStream`*"] pub fn stream(this: &Blob) -> ReadableStream; # [wasm_bindgen (method , structural , js_class = "Blob" , js_name = text)] #[doc = "The `text()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/text)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`*"] pub fn text(this: &Blob) -> ::js_sys::Promise; }