Fixes/upgrades
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
#[derive({% for d in derives %}{% if !loop.first %}, {% endif %}{{ d }}{% endfor %})]
|
||||
#[serde(rename_all = "snake_case")]
|
||||
pub enum {{ name }} {
|
||||
{% for v in variants %}{% if v.is_default %} #[default]
|
||||
{% endif %} {{ v.ident }},
|
||||
{% endfor %}}
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
{{ header }}{% for block in blocks %}{{ block }}{% if !loop.last %}
|
||||
{% endif %}{% endfor %}
|
||||
Reference in New Issue
Block a user