// Generated by redfish-codegen. Do not modify.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
pub enum HotspareActivationPolicy {
/// The hot spare drive will take over for the original drive when the original drive has been marked as failed by the storage domain.
OnDriveFailure,
/// The hot spare drive will take over for the original drive when the original drive has been predicted to fail in the future by the storage domain.
OnDrivePredictedFailure,
/// The hot spare drive will take over for the original drive in an algorithm custom to the OEM.
OEM,
}
#[allow(clippy::derivable_impls)]
impl Default for HotspareActivationPolicy {
fn default() -> HotspareActivationPolicy {
HotspareActivationPolicy::OnDriveFailure
}
}
impl crate::Metadata<'static> for HotspareActivationPolicy {
const JSON_SCHEMA: &'static str = "Storage.v1_15_0.json";
}