feat(primitives): Implement canonical JSON serialization (#90)
This commit is contained in:
parent
6fea71190d
commit
ac757eb8e9
7 changed files with 167 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue