mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-18 11:09:22 +00:00
xml: untagged enums
This commit is contained in:
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user