Skip to main content

RenderAsXml

Trait RenderAsXml 

Source
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.

Required Methods§

Source

fn to_xml(&self) -> String

Implementors§