pub fn serialize_as<T: Serialize>(
doc: &T,
add_xml_decl: bool,
) -> Result<Vec<u8>, RedispatchXmlError>Expand description
Serialise a specific document type T to an XML byte vector.
ยงErrors
Returns RedispatchXmlError::Xml on serialization failure.