jtd-codegen 0.2.0-beta.1

A framework for generating code from JSON Typedef schemas
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std::io;
use std::result;
use thiserror::Error;

pub type Result<T> = result::Result<T, Error>;

#[derive(Error, Debug)]
pub enum Error {
    #[error("unsupported feature: {0}")]
    UnsupportedFeature(String),

    #[error("i/o error: {0}")]
    Io(#[from] io::Error),
}