redfish_codegen/models/storage_replica_info/v1_4_0/
replica_recovery_mode.rs

1// Generated by redfish-codegen. Do not modify.
2
3
4/// Values of ReplicaRecoveryMode describe whether the copy operation continues after a broken link is restored.
5#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
6pub enum ReplicaRecoveryMode {
7    /// The copy operation shall resume automatically.
8    Automatic,
9    /// The ReplicaState shall be set to Suspended after the link is restored. It is required to issue the Resume operation to continue.
10    Manual,
11}
12
13#[allow(clippy::derivable_impls)]
14impl Default for ReplicaRecoveryMode {
15     fn default() -> ReplicaRecoveryMode {
16        ReplicaRecoveryMode::Automatic
17     }
18}
19
20impl crate::Metadata<'static> for ReplicaRecoveryMode {
21    const JSON_SCHEMA: &'static str = "StorageReplicaInfo.v1_4_0.json";
22}