use std::path::PathBuf;
use std::time::SystemTime;
#[derive(Clone, Copy, PartialEq, Eq, Default, Debug)]
pub enum Protocol {
#[default]
WireGuard,
OpenVPN,
}
impl std::fmt::Display for Protocol {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
Protocol::WireGuard => write!(f, "WireGuard"),
Protocol::OpenVPN => write!(f, "OpenVPN"),
}
}
}
#[derive(Clone, Debug)]
pub struct VpnProfile {
pub name: String,
pub protocol: Protocol,
pub location: String,
pub config_path: PathBuf,
pub last_used: Option<SystemTime>,
}