From 5a7a6769e3d4389c0cd819d42c3ee5d74b386679 Mon Sep 17 00:00:00 2001 From: Redhawk18 Date: Tue, 3 Jun 2025 19:01:23 -0400 Subject: [PATCH] add serde rename --- codes-iso-639/templates/part_1._rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codes-iso-639/templates/part_1._rs b/codes-iso-639/templates/part_1._rs index 4cb2b8c..6f69605 100644 --- a/codes-iso-639/templates/part_1._rs +++ b/codes-iso-639/templates/part_1._rs @@ -28,7 +28,7 @@ pub const ISO_639_1: Standard = Standard::new_with_long_ref( /// 639-1 identifier. /// #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] -#[cfg_attr(feature = "serde", derive(Deserialize, Serialize))] +#[cfg_attr(feature = "serde", derive(Deserialize, Serialize), serde(rename_all = "lowercase"))] pub enum {{ type_name }} {{ "{" }}{% for id in all_ids %} /// {{ codes[id].label }} {{ id | capitalize }},{% endfor %}