mirror of
https://github.com/htrefil/rkvm.git
synced 2025-02-07 20:45:52 +01:00
15 lines
368 B
Rust
15 lines
368 B
Rust
use rkvm_input::Key;
|
|
use serde::Deserialize;
|
|
use std::collections::HashSet;
|
|
use std::net::SocketAddr;
|
|
use std::path::PathBuf;
|
|
|
|
#[derive(Deserialize)]
|
|
#[serde(rename_all = "kebab-case")]
|
|
pub struct Config {
|
|
pub listen_address: SocketAddr,
|
|
pub switch_keys: HashSet<Key>,
|
|
pub identity_path: PathBuf,
|
|
#[serde(default)]
|
|
pub identity_password: String,
|
|
}
|