#[derive(Debug, Clone)]pubstructProxyEndpoint{/// Proxy server host (e.g. 192.168.0.100, localhost, example.com, etc.)
pubhost: String,
/// Proxy server port (e.g. 1080, 3128, etc.)
pubport: String,
}#[derive(Debug, Clone)]pubenumProxyConfig{/// Connect to proxy server via HTTP CONNECT
Http(ProxyEndpoint),/// Connect to proxy server via SOCKSv5
Socks5(ProxyEndpoint),}