Browse Source

derive Debug on iso::Market and also add serde(rename_all = "lowercase") attribute

tags/v0.4.1
Jonathan Strong 4 years ago
parent
commit
984c276f4f
2 changed files with 3 additions and 2 deletions
  1. +1
    -1
      Cargo.toml
  2. +2
    -1
      src/iso.rs

+ 1
- 1
Cargo.toml View File

@@ -1,6 +1,6 @@
[package]
name = "markets"
version = "0.4.0"
version = "0.4.1"
authors = ["Jonathan Strong <jonathan.strong@gmail.com>"]
edition = "2018"
description = "kind of like the http crate, except about tradeable markets"


+ 2
- 1
src/iso.rs View File

@@ -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,


Loading…
Cancel
Save