Skip to main content

Module xml_io

Module xml_io 

Source
Expand description

XML serialization helpers.

CloudFront’s wire format is REST-XML with xmlns carried on every top-level response element. quick-xml doesn’t emit a namespace from a serde derive, so we wrap the serialized body to inject it.

Functions§

from_xml_root
Parse an XML body into a serde-deserializable type.
to_xml_root
Serialize a serde value as <Root xmlns="...">...</Root> with a leading XML declaration.