diff options
author | metamuffin <metamuffin@disroot.org> | 2022-10-15 21:29:01 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2022-10-15 21:29:01 +0200 |
commit | 4dc45825e4b86fcda4ff5dcc0231a5fd6e745164 (patch) | |
tree | 5d5af3a73392da6792f4773e99944b1a12140e86 /src/config.rs | |
download | trash-proxy-4dc45825e4b86fcda4ff5dcc0231a5fd6e745164.tar trash-proxy-4dc45825e4b86fcda4ff5dcc0231a5fd6e745164.tar.bz2 trash-proxy-4dc45825e4b86fcda4ff5dcc0231a5fd6e745164.tar.zst |
a
Diffstat (limited to 'src/config.rs')
-rw-r--r-- | src/config.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/config.rs b/src/config.rs new file mode 100644 index 0000000..45ed6f2 --- /dev/null +++ b/src/config.rs @@ -0,0 +1,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, +} |