jrpc-types 0.1.0

A simple but super helpful crate for (de)serializing JSON-RPC 2.0 objects.
Documentation
1
2
3
4
5
6
7
8
9
10
//! This module implements the error object for jrpc-types crate.
use thiserror::Error as ThisError;

#[derive(Debug, ThisError)]
pub enum Error {
    #[error("invalid type: {0}")]
    InvalidType(String),
    #[error("serde error: {0}")]
    Serde(#[from] serde_json::Error),
}