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:
1 changed files with 3 additions and 0 deletions
@@ -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
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.