ddapi-rs 0.10.0

A simple Rust library to get data from DDNet and DDStats APIs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::fmt;

#[derive(Clone, Debug)]
pub enum ApiError {
    NotFound,
}

impl fmt::Display for ApiError {
    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
        match self {
            ApiError::NotFound => write!(f, "Player not found"),
        }
    }
}

impl std::error::Error for ApiError {}