bw-web-api-rs 0.2.8

A Rust client for the StarCraft: Remastered API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::types::Gateway;
use serde::{Deserialize, Serialize};
use std::collections::HashMap;

#[derive(Debug, Serialize, Deserialize)]
pub struct GatewayStatus {
    pub is_official: bool,
    pub name: String,
    pub online_users: u32,
    pub region: String,
}

pub type GatewayResponse = HashMap<Gateway, GatewayStatus>;