instant-xml 0.6.2

A more rigorous way to map XML to Rust types
Documentation
1
2
3
4
5
6
7
8
9
10
11
use similar_asserts::assert_eq;

use instant_xml::{to_string, ToXml};

#[derive(Debug, Eq, PartialEq, ToXml)]
struct Unit;

#[test]
fn unit() {
    assert_eq!(to_string(&Unit).unwrap(), "<Unit />");
}