pub trait RenderAsXml {
// Required method
fn to_xml(&self) -> String;
}Expand description
Trait for types that can render as XML. Unlike JsonFormat/TextFormat which have blanket impls, XML rendering requires an explicit impl per type since there’s no standard XML serialization trait.