bw_web_api_rs/models/gateway.rs
1use std::collections::HashMap;
2use serde::{Deserialize, Serialize};
3use crate::types::Gateway;
4
5#[derive(Debug, Serialize, Deserialize)]
6pub struct GatewayStatus {
7 pub is_official: bool,
8 pub name: String,
9 pub online_users: u32,
10 pub region: String,
11}
12
13pub type GatewayResponse = HashMap<Gateway, GatewayStatus>;