minecraft-data-rs 0.8.1

A wrapper for minecraft-data
use std::io;
use thiserror::Error;

#[allow(missing_docs)]
pub type DataResult<T> = Result<T, DataError>;

#[derive(Error, Debug)]
#[allow(missing_docs)]
pub enum DataError {
    #[error("IO Error: {0}")]
    IOError(#[from] io::Error),

    #[error("JSON Error: {0}")]
    JsonError(#[from] serde_json::Error),

    #[error("Object {0} not found")]
    NotFoundError(String),

    #[error("Invalid encoding of file {0}")]
    InvalidEncodingError(String),
}