Skip to main content

XmlSerializable

Trait XmlSerializable 

Source
pub trait XmlSerializable: Sealed {
    // Required method
    fn to_xml(&self) -> String;
}
Expand description

Types that can serialize themselves to NF-e XML fragments.

This trait is sealed — only types within this crate can implement it.

Required Methods§

Source

fn to_xml(&self) -> String

Serialize to an XML string fragment.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§