aboutsummaryrefslogtreecommitdiff
path: root/src/config.rs
blob: b3d4e31986ba0e99170fe57424a35fc53b93ca7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::net::SocketAddr;

use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct Config {
    pub protocol: u32,
    pub backend: SocketAddr,
    pub bind: SocketAddr,
    pub whitelist: Vec<PlayerConfig>,
}

#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct PlayerConfig {
    pub token: Option<String>,
    pub username: String,
}