xml: Custom serializers

This commit is contained in:
Lennart
2024-12-27 15:43:41 +01:00
parent 9242557741
commit a3a633f74f
3 changed files with 40 additions and 4 deletions

View File

@@ -59,6 +59,7 @@ pub struct FieldAttrs {
pub common: TagAttrs,
pub flatten: Flag,
pub default: Option<syn::ExprPath>,
pub serialize_with: Option<syn::ExprPath>,
#[darling(default, rename = "ty")]
pub xml_ty: FieldType,
}