use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(tag = "type", rename_all = "lowercase")]
pub enum ProxyConfig {
    None,
    Http { url: String },
    Socks5 { url: String },
}

impl Default for ProxyConfig {
    fn default() -> Self {
        Self::None
    }
}
