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 JobState {
    /// This value shall represent that this job is newly created but the operation has not yet started.
    New,
    /// This value shall represent that the operation is starting.
    Starting,
    /// This value shall represent that the operation is executing.
    Running,
    /// This value shall represent that the operation has been suspended but is expected to restart and is therefore not complete.
    Suspended,
    /// This value shall represent that the operation has been interrupted but is expected to restart and is therefore not complete.
    Interrupted,
    /// This value shall represent that the operation is pending some condition and has not yet begun to execute.
    Pending,
    /// This value shall represent that the operation is stopping but is not yet complete.
    Stopping,
    /// This value shall represent that the operation completed successfully or with warnings.
    Completed,
    /// This value shall represent that the operation completed because the job was cancelled by an operator.
    Cancelled,
    /// This value shall represent that the operation completed with errors.
    Exception,
    /// This value shall represent that the operation is now running as a service and expected to continue operation until stopped or killed.
    Service,
    /// This value shall represent that the operation is waiting for a user to intervene and needs to be manually continued, stopped, or cancelled.
    UserIntervention,
    /// This value shall represent that the operation has been resumed from a paused condition and should return to a Running state.
    Continue,
}

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

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