rkvm/server/src/config.rs

14 lines
349 B
Rust
Raw Normal View History

2020-10-23 19:47:57 +02:00
use serde::{Deserialize, Serialize};
use std::collections::HashSet;
use std::net::SocketAddr;
2020-10-28 22:21:44 +01:00
use std::path::PathBuf;
2020-10-23 19:47:57 +02:00
#[derive(Serialize, Deserialize)]
#[serde(rename_all = "kebab-case")]
pub struct Config {
pub listen_address: SocketAddr,
pub switch_keys: HashSet<u16>,
2020-10-28 22:21:44 +01:00
pub identity_path: PathBuf,
pub identity_password: String,
2020-10-23 19:47:57 +02:00
}