rs-pixel 0.2.0

A complete, rate-limiting, asynchronous Rust implementation of the Hypixel Public API with extensive SkyBlock support
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use serde::{Deserialize, Serialize};
use std::collections::HashMap;

#[derive(Serialize, Deserialize, Debug)]
pub struct CountsResponse {
    pub success: bool,
    pub games: HashMap<String, GameCount>,
    #[serde(rename = "playerCount")]
    pub player_count: i64,
}

#[derive(Serialize, Deserialize, Debug, PartialEq, Eq)]
pub struct GameCount {
    #[serde(default = "Default::default")]
    pub modes: HashMap<String, i64>,
    pub players: i64,
}