pub fn parse_as<T>(xml: &[u8]) -> Result<T, RedispatchXmlError>where
T: DeserializeOwned,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.