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 = XMLSerializer , typescript_type = "XMLSerializer")] 7 #[derive(Debug, Clone, PartialEq, Eq)] 8 #[doc = "The `XmlSerializer` class."] 9 #[doc = ""] 10 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLSerializer)"] 11 #[doc = ""] 12 #[doc = "*This API requires the following crate features to be activated: `XmlSerializer`*"] 13 pub type XmlSerializer; 14 #[wasm_bindgen(catch, constructor, js_class = "XMLSerializer")] 15 #[doc = "The `new XmlSerializer(..)` constructor, creating a new instance of `XmlSerializer`."] 16 #[doc = ""] 17 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLSerializer/XMLSerializer)"] 18 #[doc = ""] 19 #[doc = "*This API requires the following crate features to be activated: `XmlSerializer`*"] new() -> Result<XmlSerializer, JsValue>20 pub fn new() -> Result<XmlSerializer, JsValue>; 21 #[cfg(feature = "Node")] 22 # [wasm_bindgen (catch , method , structural , js_class = "XMLSerializer" , js_name = serializeToString)] 23 #[doc = "The `serializeToString()` method."] 24 #[doc = ""] 25 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLSerializer/serializeToString)"] 26 #[doc = ""] 27 #[doc = "*This API requires the following crate features to be activated: `Node`, `XmlSerializer`*"] serialize_to_string(this: &XmlSerializer, root: &Node) -> Result<String, JsValue>28 pub fn serialize_to_string(this: &XmlSerializer, root: &Node) -> Result<String, JsValue>; 29 } 30