feat(primitives): Implement canonical JSON serialization (#90)

This commit is contained in:
Santiago Carmuega 2022-04-25 22:35:13 -03:00 committed by GitHub
parent 6fea71190d
commit ac757eb8e9
7 changed files with 167 additions and 1 deletions

View file

@ -23,6 +23,11 @@ where
}
}
#[cfg(feature = "json")]
pub trait ToCanonicalJson {
fn to_json(&self) -> serde_json::Value;
}
#[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord)]
pub enum Era {
Byron,