redfish-codegen 0.3.1

An unopinionated translation of the Redfish specification into Rust.
Documentation
// Generated by redfish-codegen. Do not modify.


/// Values of ReplicaFaultDomain describe the fault domain for the replication relationship.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
pub enum ReplicaFaultDomain {
    /// This enumeration literal shall indicate that the source and target replicas are contained within a single fault domain.
    Local,
    /// This enumeration literal shall indicate that the source and target replicas are in separate fault domains.
    Remote,
}

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

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