add missed serde macros in types

When attribute is being locally renamed we miss the serde macros causing
deserialization to fail.

Change-Id: Ia8d8298c938ea088d1db62bf97df6defc41d93bc
This commit is contained in:
Artem Goncharov
2025-05-21 18:05:35 +02:00
parent d3f1f124e5
commit e9a60ff553

View File

@@ -157,6 +157,9 @@ use {{ mod }};
#[derive(Deserialize, Serialize)]
pub {{ subtype.base_type }} {{ subtype.name }} {
{%- for k, v in subtype.fields | dictsort %}
{% if v.serde_macros -%}
{{ v.serde_macros }}
{% endif -%}
pub {{ v.local_name }}: {{ v.type_hint }},
{%- endfor %}
}