pub struct BootEntry {
pub label: String,
pub kernel: PathBuf,
pub initrd: Option<PathBuf>,
pub kernel_args: Option<String>,
pub distribution: Distribution,
pub source_iso: String,
pub pretty_name: Option<String>,
}Expand description
Represents a discovered boot entry from an ISO
Fields§
§label: StringLabel for the boot menu (e.g., “Arch Linux x86_64”)
kernel: PathBufPath to kernel (relative to ISO mount point)
initrd: Option<PathBuf>Path to initrd (relative to ISO mount point)
kernel_args: Option<String>Kernel command line parameters
distribution: DistributionDistribution identifier
source_iso: StringISO filename (for reference)
pretty_name: Option<String>Full distro name with version, extracted from /etc/os-release
(PRETTY_NAME) or fallback files on the mounted ISO. Populated
by scan_directory; None when none of the probe paths exist
(older installers or unfamiliar layouts). Surfaced as the
primary label in downstream UI when present so operators see
“Ubuntu 24.04.2 LTS (Noble Numbat)” instead of just “Ubuntu”.
(#119)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BootEntry
impl<'de> Deserialize<'de> for BootEntry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for BootEntry
Auto Trait Implementations§
impl Freeze for BootEntry
impl RefUnwindSafe for BootEntry
impl Send for BootEntry
impl Sync for BootEntry
impl Unpin for BootEntry
impl UnsafeUnpin for BootEntry
impl UnwindSafe for BootEntry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more