Skip to main content

from_str

Function from_str 

Source
pub fn from_str<T: DeserializeOwned>(xml: &str) -> Result<T, ParseError>
Expand description

Deserialize an ISO 20022 XML message from a string slice.

The root element name must match the serde rename of the target type.

ยงErrors

Returns ParseError::Deserialize if the XML is malformed or does not match the expected schema.