redfish_codegen/models/storage_replica_info/replica_fault_domain.rs
1// Generated by redfish-codegen. Do not modify.
2
3
4/// Values of ReplicaFaultDomain describe the fault domain for the replication relationship.
5#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
6pub enum ReplicaFaultDomain {
7 /// This enumeration literal shall indicate that the source and target replicas are contained within a single fault domain.
8 Local,
9 /// This enumeration literal shall indicate that the source and target replicas are in separate fault domains.
10 Remote,
11}
12
13#[allow(clippy::derivable_impls)]
14impl Default for ReplicaFaultDomain {
15 fn default() -> ReplicaFaultDomain {
16 ReplicaFaultDomain::Local
17 }
18}
19
20impl crate::Metadata<'static> for ReplicaFaultDomain {
21 const JSON_SCHEMA: &'static str = "StorageReplicaInfo.json";
22}