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 InitializeMethod {
    /// The volume will be available for use immediately, with no preparation.
    Skip,
    /// The volume will be available for use immediately, with data erasure and preparation to happen as background tasks.
    Background,
    /// Data erasure and preparation tasks will complete before the volume is presented as available for use.
    Foreground,
}

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

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