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 CompositionState {
    /// Intermediate state indicating composition is in progress.
    Composing,
    /// The resource block is currently participating in one or more compositions, and is available to use in more compositions. Added in version v1_1_0.
    ComposedAndAvailable,
    /// Final successful state of a resource block that has participated in composition.
    Composed,
    /// The resource block is free and can participate in composition.
    Unused,
    /// The final composition resulted in failure and manual intervention might be required to fix it.
    Failed,
    /// The resource block has been made unavailable by the service, such as due to maintenance being performed on the resource block. Added in version v1_2_0.
    Unavailable,
}

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

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