blob: 45ed6f247c629afba4cd4cfc72b5c16db74e0a30 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
use std::net::SocketAddr;
use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct Config {
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,
}
|