Open
Description
A simple example here.
use serde::Serialize;
use quick_xml::se::to_string;
#[derive(Serialize)]
struct Foo {
#[serde(rename = "@foo")]
foo: Option<usize>
}
#[test]
fn test_foo() {
let foo = Foo { foo: None };
let foo_xml = to_string(&foo).unwrap();
assert_eq!(foo_xml, "<Foo foo=\"\"/>");
assert_eq!(foo_xml, "<Foo/>");
}
Is foo=""
expected in quick-xml instead of dismissing this attribute?