From 984c276f4fa689f9c8b3a1eec6a0b2f87d9aa951 Mon Sep 17 00:00:00 2001 From: Jonathan Strong Date: Fri, 24 Apr 2020 00:29:58 -0400 Subject: [PATCH] derive Debug on iso::Market and also add serde(rename_all = "lowercase") attribute --- Cargo.toml | 2 +- src/iso.rs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 7790f49..83c8d74 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "markets" -version = "0.4.0" +version = "0.4.1" authors = ["Jonathan Strong "] edition = "2018" description = "kind of like the http crate, except about tradeable markets" diff --git a/src/iso.rs b/src/iso.rs index f74dc65..f3f4fcb 100644 --- a/src/iso.rs +++ b/src/iso.rs @@ -5,7 +5,8 @@ use chrono_tz::Etc::GMTPlus5; use Market::*; -#[derive(Serialize, Deserialize, PartialEq, Eq, PartialOrd, Ord, Clone, Copy, Hash)] +#[serde(rename_all = "lowercase")] +#[derive(Serialize, Deserialize, PartialEq, Eq, PartialOrd, Ord, Clone, Copy, Hash, Debug)] #[repr(u8)] pub enum Market { Pjm = 1,