1 #![allow(unused_imports)] 2 use super::*; 3 use wasm_bindgen::prelude::*; 4 #[wasm_bindgen] 5 extern "C" { 6 # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = BlobEvent , typescript_type = "BlobEvent")] 7 #[derive(Debug, Clone, PartialEq, Eq)] 8 #[doc = "The `BlobEvent` class."] 9 #[doc = ""] 10 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BlobEvent)"] 11 #[doc = ""] 12 #[doc = "*This API requires the following crate features to be activated: `BlobEvent`*"] 13 pub type BlobEvent; 14 #[cfg(feature = "Blob")] 15 # [wasm_bindgen (structural , method , getter , js_class = "BlobEvent" , js_name = data)] 16 #[doc = "Getter for the `data` field of this object."] 17 #[doc = ""] 18 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BlobEvent/data)"] 19 #[doc = ""] 20 #[doc = "*This API requires the following crate features to be activated: `Blob`, `BlobEvent`*"] data(this: &BlobEvent) -> Option<Blob>21 pub fn data(this: &BlobEvent) -> Option<Blob>; 22 #[wasm_bindgen(catch, constructor, js_class = "BlobEvent")] 23 #[doc = "The `new BlobEvent(..)` constructor, creating a new instance of `BlobEvent`."] 24 #[doc = ""] 25 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BlobEvent/BlobEvent)"] 26 #[doc = ""] 27 #[doc = "*This API requires the following crate features to be activated: `BlobEvent`*"] new(type_: &str) -> Result<BlobEvent, JsValue>28 pub fn new(type_: &str) -> Result<BlobEvent, JsValue>; 29 #[cfg(feature = "BlobEventInit")] 30 #[wasm_bindgen(catch, constructor, js_class = "BlobEvent")] 31 #[doc = "The `new BlobEvent(..)` constructor, creating a new instance of `BlobEvent`."] 32 #[doc = ""] 33 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BlobEvent/BlobEvent)"] 34 #[doc = ""] 35 #[doc = "*This API requires the following crate features to be activated: `BlobEvent`, `BlobEventInit`*"] new_with_event_init_dict( type_: &str, event_init_dict: &BlobEventInit, ) -> Result<BlobEvent, JsValue>36 pub fn new_with_event_init_dict( 37 type_: &str, 38 event_init_dict: &BlobEventInit, 39 ) -> Result<BlobEvent, JsValue>; 40 } 41