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 TaskState {
    /// This value shall represent that the task is newly created, but has not started.
    New,
    /// This value shall represent that the task is starting.
    Starting,
    /// This value shall represent that the task is executing.
    Running,
    /// This value shall represent that the task has been suspended but is expected to restart and is therefore not complete.
    Suspended,
    /// This value shall represent that the task has been interrupted but is expected to restart and is therefore not complete.
    Interrupted,
    /// This value shall represent that the task is pending some condition and has not yet begun to execute.
    Pending,
    /// This value shall represent that the task is stopping but is not yet complete.
    Stopping,
    /// This value shall represent that the task completed successfully or with warnings.
    Completed,
    /// This value shall represent that the task is complete because an operator killed it.
    Killed,
    /// This value shall represent that the task completed with errors.
    Exception,
    /// This value shall represent that the task is now running as a service and expected to continue operation until stopped or killed.
    Service,
    /// This value shall represent that the task is in the process of being cancelled. Added in version v1_2_0.
    Cancelling,
    /// This value shall represent that either a DELETE operation on a Task Monitor or Task Resource or by an internal process cancelled the task. Added in version v1_2_0.
    Cancelled,
}

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

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