netidx_wsproxy/
config.rs

1use serde_derive::{Deserialize, Serialize};
2use structopt::StructOpt;
3
4#[derive(Debug, Serialize, Deserialize, StructOpt)]
5#[serde(deny_unknown_fields)]
6pub struct Config {
7    #[structopt(long = "listen", help = "the websocket address/port to listen on")]
8    pub listen: String,
9    #[serde(default)]
10    #[structopt(long = "cert", help = "path to the tls certificate")]
11    pub cert: Option<String>,
12    #[serde(default)]
13    #[structopt(long = "key", help = "path to the private key")]
14    pub key: Option<String>,
15}