Skip to main content

ToXml

Trait ToXml 

Source
pub trait ToXml {
    // Required method
    fn to_xml(&self) -> String;
}

Required Methods§

Source

fn to_xml(&self) -> String

Convert the struct to an XML string.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T> ToXml for T
where T: Serialize,