1 2 3 4 5 6 7 8 9 10 11 12 13 14
use serde::{Deserialize, Serialize}; /// Configuration object for WICRS Server. #[derive(Serialize, Deserialize, Clone)] pub struct Config { /// Base URL of the PGP key server to use. pub key_server: String, /// Address to listen on for HTTP requests. (`host:port`) pub address: String, /// Whether or not to show the version of WICRS server on the root webpage (`http(s)://host:port/`) pub show_version: bool, /// ID to give the generated PGP KeyPair. pub key_id: Option<String>, }