redfish-codegen 0.3.1

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


/// Values of ReplicaUpdateMode describe whether the target elements will be updated synchronously or asynchronously.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
pub enum ReplicaUpdateMode {
    /// This enumeration literal shall indicate Active-Active (i.e. bidirectional) synchronous updates.
    Active,
    /// This enumeration literal shall indicate Synchronous updates.
    Synchronous,
    /// This enumeration literal shall indicate Asynchronous updates.
    Asynchronous,
    /// This enumeration literal shall indicate that an implementation may switch between synchronous and asynchronous modes.
    Adaptive,
}

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

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