pub fn to_string_with_declaration<T: Serialize>(
value: &T,
) -> Result<String, ParseError>Expand description
Serialize an ISO 20022 message type to an XML string with an XML declaration.
Prepends <?xml version="1.0" encoding="UTF-8"?> before the XML body.
ยงErrors
Returns ParseError::Serialize if the value cannot be serialized.