| 1 | #![allow (unused_imports)] |
| 2 | #![allow (clippy::all)] |
| 3 | use super::*; |
| 4 | use wasm_bindgen::prelude::*; |
| 5 | #[wasm_bindgen ] |
| 6 | unsafeextern "C" { |
| 7 | # [wasm_bindgen (extends = :: js_sys :: Object , js_name = Transformer)] |
| 8 | #[derive (Debug, Clone, PartialEq, Eq)] |
| 9 | #[doc = "The `Transformer` dictionary." ] |
| 10 | #[doc = "" ] |
| 11 | #[doc = "*This API requires the following crate features to be activated: `Transformer`*" ] |
| 12 | pub type Transformer; |
| 13 | #[doc = "Get the `flush` field of this object." ] |
| 14 | #[doc = "" ] |
| 15 | #[doc = "*This API requires the following crate features to be activated: `Transformer`*" ] |
| 16 | #[wasm_bindgen (method, getter = "flush" )] |
| 17 | pub unsafefn get_flush(this: &Transformer) -> Option<::js_sys::Function>; |
| 18 | #[doc = "Change the `flush` field of this object." ] |
| 19 | #[doc = "" ] |
| 20 | #[doc = "*This API requires the following crate features to be activated: `Transformer`*" ] |
| 21 | #[wasm_bindgen (method, setter = "flush" )] |
| 22 | pub unsafefn set_flush(this: &Transformer, val: &::js_sys::Function); |
| 23 | #[doc = "Get the `readableType` field of this object." ] |
| 24 | #[doc = "" ] |
| 25 | #[doc = "*This API requires the following crate features to be activated: `Transformer`*" ] |
| 26 | #[wasm_bindgen (method, getter = "readableType" )] |
| 27 | pub unsafefn get_readable_type(this: &Transformer) -> ::wasm_bindgen::JsValue; |
| 28 | #[doc = "Change the `readableType` field of this object." ] |
| 29 | #[doc = "" ] |
| 30 | #[doc = "*This API requires the following crate features to be activated: `Transformer`*" ] |
| 31 | #[wasm_bindgen (method, setter = "readableType" )] |
| 32 | pub unsafefn set_readable_type(this: &Transformer, val: &::wasm_bindgen::JsValue); |
| 33 | #[doc = "Get the `start` field of this object." ] |
| 34 | #[doc = "" ] |
| 35 | #[doc = "*This API requires the following crate features to be activated: `Transformer`*" ] |
| 36 | #[wasm_bindgen (method, getter = "start" )] |
| 37 | pub unsafefn get_start(this: &Transformer) -> Option<::js_sys::Function>; |
| 38 | #[doc = "Change the `start` field of this object." ] |
| 39 | #[doc = "" ] |
| 40 | #[doc = "*This API requires the following crate features to be activated: `Transformer`*" ] |
| 41 | #[wasm_bindgen (method, setter = "start" )] |
| 42 | pub unsafefn set_start(this: &Transformer, val: &::js_sys::Function); |
| 43 | #[doc = "Get the `transform` field of this object." ] |
| 44 | #[doc = "" ] |
| 45 | #[doc = "*This API requires the following crate features to be activated: `Transformer`*" ] |
| 46 | #[wasm_bindgen (method, getter = "transform" )] |
| 47 | pub unsafefn get_transform(this: &Transformer) -> Option<::js_sys::Function>; |
| 48 | #[doc = "Change the `transform` field of this object." ] |
| 49 | #[doc = "" ] |
| 50 | #[doc = "*This API requires the following crate features to be activated: `Transformer`*" ] |
| 51 | #[wasm_bindgen (method, setter = "transform" )] |
| 52 | pub unsafefn set_transform(this: &Transformer, val: &::js_sys::Function); |
| 53 | #[doc = "Get the `writableType` field of this object." ] |
| 54 | #[doc = "" ] |
| 55 | #[doc = "*This API requires the following crate features to be activated: `Transformer`*" ] |
| 56 | #[wasm_bindgen (method, getter = "writableType" )] |
| 57 | pub unsafefn get_writable_type(this: &Transformer) -> ::wasm_bindgen::JsValue; |
| 58 | #[doc = "Change the `writableType` field of this object." ] |
| 59 | #[doc = "" ] |
| 60 | #[doc = "*This API requires the following crate features to be activated: `Transformer`*" ] |
| 61 | #[wasm_bindgen (method, setter = "writableType" )] |
| 62 | pub unsafefn set_writable_type(this: &Transformer, val: &::wasm_bindgen::JsValue); |
| 63 | } |
| 64 | impl Transformer { |
| 65 | #[doc = "Construct a new `Transformer`." ] |
| 66 | #[doc = "" ] |
| 67 | #[doc = "*This API requires the following crate features to be activated: `Transformer`*" ] |
| 68 | pub fn new() -> Self { |
| 69 | #[allow (unused_mut)] |
| 70 | let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); |
| 71 | ret |
| 72 | } |
| 73 | #[deprecated = "Use `set_flush()` instead." ] |
| 74 | pub fn flush(&mut self, val: &::js_sys::Function) -> &mut Self { |
| 75 | self.set_flush(val); |
| 76 | self |
| 77 | } |
| 78 | #[deprecated = "Use `set_readable_type()` instead." ] |
| 79 | pub fn readable_type(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { |
| 80 | self.set_readable_type(val); |
| 81 | self |
| 82 | } |
| 83 | #[deprecated = "Use `set_start()` instead." ] |
| 84 | pub fn start(&mut self, val: &::js_sys::Function) -> &mut Self { |
| 85 | self.set_start(val); |
| 86 | self |
| 87 | } |
| 88 | #[deprecated = "Use `set_transform()` instead." ] |
| 89 | pub fn transform(&mut self, val: &::js_sys::Function) -> &mut Self { |
| 90 | self.set_transform(val); |
| 91 | self |
| 92 | } |
| 93 | #[deprecated = "Use `set_writable_type()` instead." ] |
| 94 | pub fn writable_type(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { |
| 95 | self.set_writable_type(val); |
| 96 | self |
| 97 | } |
| 98 | } |
| 99 | impl Default for Transformer { |
| 100 | fn default() -> Self { |
| 101 | Self::new() |
| 102 | } |
| 103 | } |
| 104 | |