pub fn to_string<T: Serialize>(value: &T) -> Result<String, ParseError>Expand description
Serialize an ISO 20022 message type to an XML string.
The root element name is derived from the struct name (or #[serde(rename)]).
No XML declaration is prepended; use to_string_with_declaration if needed.
ยงErrors
Returns ParseError::Serialize if the value cannot be serialized.