rkvm/server/src/config.rs
2020-10-28 22:21:44 +01:00

13 lines
349 B
Rust

use serde::{Deserialize, Serialize};
use std::collections::HashSet;
use std::net::SocketAddr;
use std::path::PathBuf;
#[derive(Serialize, Deserialize)]
#[serde(rename_all = "kebab-case")]
pub struct Config {
pub listen_address: SocketAddr,
pub switch_keys: HashSet<u16>,
pub identity_path: PathBuf,
pub identity_password: String,
}