redfish_codegen/models/storage_replica_info/v1_4_0/
replica_priority.rs

1// Generated by redfish-codegen. Do not modify.
2
3
4/// ReplicaPriority allows the priority of background copy engine I/O to be managed relative to host I/O operations during a sequential background copy operation.
5#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
6pub enum ReplicaPriority {
7    /// Copy engine I/O shall have a lower priority than host I/O.
8    Low,
9    /// Copy engine I/O shall have the same priority as host I/O.
10    Same,
11    /// Copy engine I/O shall have a higher priority than host I/O.
12    High,
13    /// Regardless of the host I/O requests, the Copy operation shall be performed as soon as possible.
14    Urgent,
15}
16
17#[allow(clippy::derivable_impls)]
18impl Default for ReplicaPriority {
19     fn default() -> ReplicaPriority {
20        ReplicaPriority::Low
21     }
22}
23
24impl crate::Metadata<'static> for ReplicaPriority {
25    const JSON_SCHEMA: &'static str = "StorageReplicaInfo.v1_4_0.json";
26}