redfish-codegen 0.3.1

An unopinionated translation of the Redfish specification into Rust.
Documentation
// Generated by redfish-codegen. Do not modify.


#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
pub enum BootSource {
    /// Boot from the normal boot device.
    None,
    /// Boot from the Pre-Boot EXecution (PXE) environment.
    Pxe,
    /// Boot from the floppy disk drive.
    Floppy,
    /// Boot from the CD or DVD.
    Cd,
    /// Boot from a system BIOS-specified USB device.
    Usb,
    /// Boot from a hard drive.
    Hdd,
    /// Boot to the BIOS setup utility.
    BiosSetup,
    /// Boot to the manufacturer's utilities program or programs.
    Utilities,
    /// Boot to the manufacturer's diagnostics program.
    Diags,
    /// Boot to the UEFI Shell.
    UefiShell,
    /// Boot to the UEFI device specified in the UefiTargetBootSourceOverride property.
    UefiTarget,
    /// Boot from an SD card. Added in version v1_1_0.
    SDCard,
    /// Boot from a UEFI HTTP network location. Added in version v1_1_0.
    UefiHttp,
    /// Boot from a remote drive, such as an iSCSI target. Added in version v1_2_0.
    RemoteDrive,
    /// Boot to the UEFI device that the BootNext property specifies. Added in version v1_5_0.
    UefiBootNext,
    /// Boot to a system-designated recovery process or image. Added in version v1_19_0.
    Recovery,
}

#[allow(clippy::derivable_impls)]
impl Default for BootSource {
     fn default() -> BootSource {
        BootSource::None
     }
}

impl crate::Metadata<'static> for BootSource {
    const JSON_SCHEMA: &'static str = "ComputerSystem.json";
}