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:
@@ -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 %}
|
||||
}
|
||||
|
Reference in New Issue
Block a user