redfish_codegen/models/computer_system/
boot_source.rs

1// Generated by redfish-codegen. Do not modify.
2
3
4#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
5pub enum BootSource {
6    /// Boot from the normal boot device.
7    None,
8    /// Boot from the Pre-Boot EXecution (PXE) environment.
9    Pxe,
10    /// Boot from the floppy disk drive.
11    Floppy,
12    /// Boot from the CD or DVD.
13    Cd,
14    /// Boot from a system BIOS-specified USB device.
15    Usb,
16    /// Boot from a hard drive.
17    Hdd,
18    /// Boot to the BIOS setup utility.
19    BiosSetup,
20    /// Boot to the manufacturer's utilities program or programs.
21    Utilities,
22    /// Boot to the manufacturer's diagnostics program.
23    Diags,
24    /// Boot to the UEFI Shell.
25    UefiShell,
26    /// Boot to the UEFI device specified in the UefiTargetBootSourceOverride property.
27    UefiTarget,
28    /// Boot from an SD card. Added in version v1_1_0.
29    SDCard,
30    /// Boot from a UEFI HTTP network location. Added in version v1_1_0.
31    UefiHttp,
32    /// Boot from a remote drive, such as an iSCSI target. Added in version v1_2_0.
33    RemoteDrive,
34    /// Boot to the UEFI device that the BootNext property specifies. Added in version v1_5_0.
35    UefiBootNext,
36    /// Boot to a system-designated recovery process or image. Added in version v1_19_0.
37    Recovery,
38}
39
40#[allow(clippy::derivable_impls)]
41impl Default for BootSource {
42     fn default() -> BootSource {
43        BootSource::None
44     }
45}
46
47impl crate::Metadata<'static> for BootSource {
48    const JSON_SCHEMA: &'static str = "ComputerSystem.json";
49}