xml: Also implement unit variants

This commit is contained in:
Lennart
2025-01-18 19:35:19 +01:00
parent ea9f5a711d
commit 39beee2f69
5 changed files with 102 additions and 3 deletions

View File

@@ -22,6 +22,7 @@ pub struct VariantAttrs {
#[darling(attributes(xml))]
pub struct EnumAttrs {
pub untagged: Flag,
pub unit_variants_name: Option<String>,
}
#[derive(Default, FromDeriveInput, Clone)]