to_string_with_root

Function to_string_with_root 

Source
pub fn to_string_with_root<T>(value: &T, root: &str) -> Result<String>
where T: Serialize + ?Sized,
Expand description

Serializes a value to an XML string with a root element name.