mojang 0.1.0

🕹️ Interface for the Mojang API
Documentation
use std::io;

use ureq::Error;

/// Varous errors that can come from the function in this crate
#[derive(Debug)]
pub enum MojangError {
    /// Not enough data to proform action
    ///
    /// Ex: Used when calling Player.name_at(n) if player dosent have nave history data
    NotEnoughData,

    /// IO Error while reading a stream
    ReadError(io::Error),

    /// Ureq Request Error
    RequestError(Error),

    /// Error Parseing Data
    ParseError,
}