pub struct DiscoveredIso {Show 13 fields
pub iso_path: PathBuf,
pub label: String,
pub pretty_name: Option<String>,
pub distribution: Distribution,
pub kernel: PathBuf,
pub initrd: Option<PathBuf>,
pub cmdline: Option<String>,
pub quirks: Vec<Quirk>,
pub hash_verification: HashVerification,
pub signature_verification: SignatureVerification,
pub size_bytes: Option<u64>,
pub contains_installer: bool,
pub sidecar: Option<IsoSidecar>,
}Expand description
Metadata for a single discovered ISO. Paths are relative to the (now
unmounted) ISO root and become absolute once handed to prepare.
Fields§
§iso_path: PathBufAbsolute path to the .iso file on the host filesystem.
label: StringHuman label (e.g. “Ubuntu 24.04 LTS”).
pretty_name: Option<String>Full distro name + version read from the mounted ISO’s
/etc/os-release (PRETTY_NAME), /.disk/info, or
/etc/alpine-release. None when none of those files
resolved (older installers, unfamiliar layouts). Downstream
UIs should prefer this over label when present so operators
see “Ubuntu 24.04.2 LTS (Noble Numbat)” instead of just
“Ubuntu”. (#119)
distribution: DistributionDetected distribution family.
kernel: PathBufKernel path relative to the ISO root.
initrd: Option<PathBuf>Optional initrd path relative to the ISO root.
cmdline: Option<String>Kernel command line as declared by the ISO’s boot config.
quirks: Vec<Quirk>Quirks the rescue TUI should warn about before kexec.
hash_verification: HashVerificationHash verification status (from sibling checksum files, if any).
signature_verification: SignatureVerificationMinisign signature verification status (from sibling .minisig, if any).
size_bytes: Option<u64>File size in bytes from stat(2) on iso_path. None if stat failed.
Rendered as a human-readable value in the Confirm preview pane.
contains_installer: boolTrue if this ISO is known to contain an installer that can write to disk when the user picks the wrong boot-menu entry. Determined heuristically from filename patterns. rescue-tui surfaces a yellow warning strip on the Confirm screen. (#131)
sidecar: Option<IsoSidecar>Operator-curated metadata loaded from a sibling
<iso>.aegis.toml file, if present. Cosmetic only —
display_name, description, last_verified_at, etc. The
boot decision still keys off the sha256-attested manifest.
None when no sidecar exists or when parsing failed (a
malformed sidecar logs at WARN and otherwise behaves as
“not present” — the menu falls back to the bare filename).
(#246)
Trait Implementations§
Source§impl Clone for DiscoveredIso
impl Clone for DiscoveredIso
Source§fn clone(&self) -> DiscoveredIso
fn clone(&self) -> DiscoveredIso
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DiscoveredIso
impl Debug for DiscoveredIso
Source§impl<'de> Deserialize<'de> for DiscoveredIso
impl<'de> Deserialize<'de> for DiscoveredIso
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>,
Source§impl PartialEq for DiscoveredIso
impl PartialEq for DiscoveredIso
Source§impl Serialize for DiscoveredIso
impl Serialize for DiscoveredIso
impl Eq for DiscoveredIso
impl StructuralPartialEq for DiscoveredIso
Auto Trait Implementations§
impl Freeze for DiscoveredIso
impl RefUnwindSafe for DiscoveredIso
impl Send for DiscoveredIso
impl Sync for DiscoveredIso
impl Unpin for DiscoveredIso
impl UnsafeUnpin for DiscoveredIso
impl UnwindSafe for DiscoveredIso
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.