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 ApplyTime {
    /// This value shall indicate the HttpPushUri-provided software is applied immediately.
    Immediate,
    /// This value shall indicate the HttpPushUri-provided software is applied when the system or service is reset.
    OnReset,
    /// This value shall indicate the HttpPushUri-provided software is applied during the maintenance window specified by the MaintenanceWindowStartTime and MaintenanceWindowDurationInSeconds properties.  A service may perform resets during this maintenance window.
    AtMaintenanceWindowStart,
    /// This value shall indicate the HttpPushUri-provided software is applied during the maintenance window specified by the MaintenanceWindowStartTime and MaintenanceWindowDurationInSeconds properties, and if a reset occurs within the maintenance window.
    InMaintenanceWindowOnReset,
    /// This value shall indicate the HttpPushUri-provided software is applied when the StartUpdate action of the update service is invoked. Added in version v1_11_0.
    OnStartUpdateRequest,
}

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

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