use std::path::PathBuf;
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum BootMode {
Hybrid,
Windows,
WindowsNtXp,
Windows2000,
IsolinuxLinux,
UefiOnly,
}
impl BootMode {
pub fn as_str(&self) -> &'static str {
match self {
BootMode::Hybrid => "hybrid",
BootMode::Windows => "windows",
BootMode::WindowsNtXp => "windows-ntxp",
BootMode::Windows2000 => "windows-2000",
BootMode::IsolinuxLinux => "linux",
BootMode::UefiOnly => "uefi",
}
}
}
#[derive(Debug, Clone)]
pub struct WritePlan {
pub iso_path: PathBuf,
pub iso_bytes: u64,
pub mode: BootMode,
pub label: String,
}