cuprate_types/json/mod.rs
1//! This module contains types mappings for other common types
2//! to allow for easier JSON (de)serialization.
3//!
4//! The main types are:
5//! - [`block::Block`]
6//! - [`tx::Transaction`]
7//!
8//! Modules exist within this module as the JSON representation
9//! of types sometimes differs, thus, the modules hold the types
10//! that match the specific schema, for example [`block::Input`]
11//! is different than [`tx::Input`].
12//!
13//! # (De)serialization invariants
14//! These types are only meant for JSON (de)serialization.
15//!
16//! Some types implement `epee` although will panic with [`unimplemented`].
17//! See `cuprate_rpc_types` for more information.
18
19pub mod block;
20pub mod output;
21pub mod tx;