Skip to main content

parse_as

Function parse_as 

Source
pub fn parse_as<T>(xml: &[u8]) -> Result<T, RedispatchXmlError>
Expand description

Deserialise a Redispatch 2.0 XML document into a specific type T.

Use this when the document type is known at compile time.

ยงErrors

Returns RedispatchXmlError::Deserialize on parse failure.