xml: untagged enums

This commit is contained in:
Lennart
2024-12-22 18:12:15 +01:00
parent 241b356e44
commit 9813fb5f95
4 changed files with 204 additions and 52 deletions

View File

@@ -13,11 +13,12 @@ pub struct TagAttrs {
pub ns: Option<LitByteStr>,
}
#[derive(Default, FromVariant, Clone)]
#[derive(Default, FromVariant)]
#[darling(attributes(xml))]
pub struct VariantAttrs {
#[darling(flatten)]
pub common: TagAttrs,
pub other: Flag,
}
#[derive(Default, FromDeriveInput, Clone)]