Make openstack_types props also public
struct properties should be also public Change-Id: Id1f706003694e2e8c071a3ea76a24d85010fcec6
This commit is contained in:
parent
8f2a2d6150
commit
2c5a228684
@ -34,7 +34,7 @@ use {{ mod }};
|
||||
{% if v.serde_macros -%}
|
||||
{{ v.serde_macros }}
|
||||
{% endif -%}
|
||||
{{ v.local_name }}: {{ v.type_hint }},
|
||||
pub {{ v.local_name }}: {{ v.type_hint }},
|
||||
{%- endif %}
|
||||
{%- endfor %}
|
||||
|
||||
@ -69,7 +69,7 @@ use {{ mod }};
|
||||
#[derive(Deserialize, Serialize)]
|
||||
pub {{ subtype.base_type }} {{ subtype.name }} {
|
||||
{%- for k, v in subtype.fields | dictsort %}
|
||||
{{ v.local_name }}: {{ v.type_hint }},
|
||||
pub {{ v.local_name }}: {{ v.type_hint }},
|
||||
{%- endfor %}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user