2022-01-30 22:18:09 +01:00
|
|
|
use std::net::SocketAddr;
|
|
|
|
|
|
|
|
use serde::Deserialize;
|
|
|
|
|
|
|
|
#[derive(Deserialize)]
|
|
|
|
pub struct Config {
|
|
|
|
pub addr: SocketAddr,
|
2022-03-26 23:53:27 +01:00
|
|
|
pub proxy: Option<String>,
|
|
|
|
pub proxy_auth: Option<ProxyAuth>,
|
|
|
|
}
|
|
|
|
|
|
|
|
#[derive(Deserialize)]
|
|
|
|
pub struct ProxyAuth {
|
|
|
|
pub username: String,
|
|
|
|
pub password: String,
|
2022-01-30 22:18:09 +01:00
|
|
|
}
|